Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Good day!
Let us mark cursor position in the form of "|" sign.
For example, we have the following node in Arbortext Editor 5.2.
<node1>This is a sim|ple text.</node1>
Then my Java plugin encloses part of text with a "b" and "i" nodes:
<node1>This is a sim|ple text.</node1>
I want to restore the cursor position relatively to "node1", but the following code will not help me:
pos = oid_caret_pos(oid) // oid of the node1
...
goto_oid(oid, pos)
oid_caret_pos treats each non-text object (that is, markup, equations, tables, graphics) as one character.
Thank you for this trick, it works fine.
