Maybe if I explain more, you can point me to the best method. A user might have a predefined template that gets loaded into the editor. Their template might look like this:
-----
Dear customer,
[[CURSOR]]
Regards,
Support
-------
So I would like to be able to remove the text "[[CURSOR]]" and set the caret at that position after the text is removed. How would I best achieve this?