Skip to main content
rarur97798982
Inspiring
April 26, 2018
Question

Is there any way, so that I could place the cursor in a selected text using javascript in illustrator.

  • April 26, 2018
  • 1 reply
  • 818 views

Hi,

I had selected a text using script. Now I need to place the cursor somewhere in the selected text. Is it possible?
Thanks in advance.

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
May 1, 2018

It's hard to work with insertion points in Illustrator. Most things are read only.

I think, all that I can give you and what could be useful is this (select a text frame before)

app.activeDocument.selection[0].insertionPoints[0].characters.add("\u0041");

Have fun

rarur97798982
Inspiring
May 2, 2018

Hi pixxxel,
Thank-you for your response. That worked fine. But, my requirement is to have a cursor somewhere in the selected textframe.

pixxxelschubser
Community Expert
Community Expert
May 2, 2018

Sorry, but this is the closest thing that I know. The problem is: you cannot select the type tool afterwards and then funny things happen with the selection if the user want to write something after running the script.

There is IMHO no solution at the moment.