I’ve written a shortcode and its functioning like it should. Now the hard part:
I would like to show the user a preview already in the tinyMCE editor. Loading CSS in the editor is not a problem for me, but i would love to know if it is possible to already process the shortcode within TinyMCE.
Thanks!
Let the code talk:
I’ll put a code to add a visual icon for highlight content word(s) shortcode, and you can then implement any other shortcode you want with the same logic,
Our js code for the highlight button option
make an dot js file put the followin code in it and put it in the tinyMCE plugin directory
I hope this help, give me you feedback if you want any more explanation, thanks.