6 Replies Latest reply on Feb 15, 2017 10:20 PM by ali u

    inserting unicode characters around selected text

    ali u Level 1

      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";