4.5 is out and with it new Text Patterns. I would like to know how to go about adding my own custom patterns.
Thanks to this answer here, I am able to use different instances of wp_editor
to determine which buttons each of my differing TinyMCE instances use.
I’m building a simple plugin and need to be able to access current post id when user clicks custom tinyMCE button (inside its onclick function). How should I get current post ID to do that.
I have added a custom button to the tinymce to insert my shortcodes, but I have so many and I want to make a splitbutton instead and I can’t figure how. Anyone can help. Here’s the code that I’ve used to create the normal button: