My Goal is to Have new Buttons in Tinymce and Later in the Markdown Editor. I have write in my Frontend a little Application that can parse Shortcodes (like Wordpress) to HTML. But i Need this Button in the Backend or Some Menu Item to list the Possible Shortcodes in the Editors from Cockpit CMS. I can’t remember the Commplet Shortcodes and it’s fast to use this.
I wrote a TinyMCE plugin for my CpMultiplane frontend to use a custom image button and a custom image route and another one for my VideoLinkField addon. Maybe it is helpful to get the basic structure.
Nice. Do you plan to publish your code when you finished it?
Writing my existent wysiwyg plugins for the markdown editor is on my to do list, but after spending multiple days on trying to understand tinymce, I didn’t want to touch that anymore.
But I did some research in the past: The markdown field inherits the html field, which uses codemirror. Have a look at how the collection link and the assets are implemented: