Put LaTeX in at the textarea's caret, over what is selected, and leave the caret in the first empty {} it brought, or after it.
{}
Put LaTeX in at the textarea's caret, over what is selected, and leave the caret in the first empty
{}it brought, or after it.