I am implementing a AuthorOperation which should jump to a specific element within an xml file that needs to be opened in text mode.
I already managed to open the file:
Code: Select all
(and also to modify the content with editor.reloadContent()
But how can I place the cursor at a specific position? The target element even has an id attribute. So basically I want to trigger the behavior is if i'm clicking on a link "my-file.xml#my-id".
Thanks and regards,