Copy link to clipboard
Copied
What is insertion point and how it works? I didn't find a good explanation.
In simple terms insertion point would be the cursor location in a textframe, i.e the space between two characters where the cursor blinks. If you want to insert something into the current cursor location, you could use something like
app.selection[0].contents = "inserted text"
-Manan
Copy link to clipboard
Copied
In simple terms insertion point would be the cursor location in a textframe, i.e the space between two characters where the cursor blinks. If you want to insert something into the current cursor location, you could use something like
app.selection[0].contents = "inserted text"
-Manan
Copy link to clipboard
Copied
So when I use textFrame.insertionPoints[-1] for example, I have the coordinates where the last character of text within TextFrame is?
Copy link to clipboard
Copied
Correct. Though as Manan mentioned, insertionPoints
P.
Copy link to clipboard
Copied
Also, an entirely blank text frame contains no characters at all – but it still has one Insertion Point. Else you could not add text to it.
(The same is true for footnotes and table cells.)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now