inserting unicode characters around selected text
Hi, I select some text and use this two lines to add two characters before and after my selected text, it works but the selected text changes and includes one of the added characters. How can I add these tho characters and have the selection stay the same?
| app.selection[0].insertionPoints[-1].contents = "\u0041"; | ||
| app.selection[0].insertionPoints[0].contents = "\u0042"; |