Insert HTML when mark is added to storedMarks

Hello, I am trying to make a <sup> mark that would change the cursor position and size immediately when activated, before any text is entered.

I think that by inserting <sup>&#xFEFF</sup> with cursor right before </sup> would do what I want to do, but how do I do that while mark is in storedMarks?

You could write a plugin that adds a widget decoration like that in front of the cursor when your mark is in storedMarks, I suppose.

1 Like