I’m trying to implement a custom mark for the writer field using the new extension API. I can get the “highlight” example working fine, but I can’t reproduce the “link” or “email” marks. I can’t get a pop-up to show up, say, to enter a URL or an email, even if I copy-paste the default implementation.
In order to create inline Buttons in a writer field I want to add a custom mark. The goal for me is to have a mark wich adds a span element with a class around the selected text. Following the Docs this works fine.
Since you need a custom dialog, you cannot use the link event. Instead, you can copy the this.$panel.dialog.open() code to your mark implementation directly and adapt it to your needs.
If your marks only differ by the class name, you could alternatively also adapt your parseDOM rules so each mark only grabs the instances it should. The link mark is a good example for such custom selectors.