Action that inserts a tag and moves the cursor to after that
Posted: Wed Sep 04, 2013 11:10 am
Hi guys,
I want to write an InsertFragmentOperation action that inserts "<br/>" and moves the cursor to after that new "<br/>" tag; the tag in the schema is declared so that it doesn't allow any text inside.
In my Author / Action tab, I do have goToNextEditablePosition to true for my action, but the editor still positions the cursor inside the <br/> tag, which forces me to click "right-arrow" to continue typing after inserting a line break.
I saw a very old message saying one has to write a custom action for something like that, is it still true?
Thanks
Yann
I want to write an InsertFragmentOperation action that inserts "<br/>" and moves the cursor to after that new "<br/>" tag; the tag in the schema is declared so that it doesn't allow any text inside.
In my Author / Action tab, I do have goToNextEditablePosition to true for my action, but the editor still positions the cursor inside the <br/> tag, which forces me to click "right-arrow" to continue typing after inserting a line break.
I saw a very old message saying one has to write a custom action for something like that, is it still true?
Thanks
Yann