Retrieve the insert position in a text
Posted: Wed Nov 20, 2019 2:05 pm
Hello everyone,
I am using the Oxygen SDK 21.1.0.2 and I wondered if it is possible to retrieve the exact insert position in a text.
Currently I have overridden the method in our own class.
But I only manage to use the offset attribut to get the current node.
And I don't manage to retrieve the exacte position of the insert in the text of this node.
I tried to use the method from with as parameters but without success.
Is it possible to retrieve this position ?
I need it to automatically detect specific abbreviations when users writes in a document.
Regards,
Isabelle
I am using the Oxygen SDK 21.1.0.2 and I wondered if it is possible to retrieve the exact insert position in a text.
Currently I have overridden the method
Code: Select all
insertText
Code: Select all
DocumentFilter
But I only manage to use the offset attribut to get the current node.
And I don't manage to retrieve the exacte position of the insert in the text of this node.
I tried to use the method
Code: Select all
getFilteredText
Code: Select all
AuthorDocumentController
Code: Select all
offset -1 and offset
Is it possible to retrieve this position ?
I need it to automatically detect specific abbreviations when users writes in a document.
Regards,
Isabelle