Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! 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.