Hello, i would like to ask for help with resolving element position. I’m quite new to this editor and haven’t find the solution in documentation. Is there a way to find resolved positions based on absolute position from plain text string?
I have a text editor and i need some logic to be done on backend. For example i send a text from my editor to the backend (using editor.getText()) and receive a response with
- a phrase that i want to highlight with mark
- starting/ending text positions of this phrase relative to the whole text.
But the problem is that these offsets are different from the resolved positions for this phrase in editor.
Is there any solution other than writing a custom function to iterate through all the nodes and resolving the position myself?