jtsternberg / Shortcode_Button

Tinymce and Quicktag buttons for outputting shortcodes. Built to work with CMB2.
81 stars 7 forks source link

Wysiwyg not working for 2+ buttons #24

Open ryanatduckpin opened 5 years ago

ryanatduckpin commented 5 years ago

When I try to add a second button, the WYSIWYG editor on the second modal disables the visual mode, has transparent type, and the buttons are missing. I tried calling both buttons in the same function to eliminate add_action priority issues, I made sure I didn't duplicate any ids, I couldn't produce any js console log or PHP log errors, etc. It seems as though when the second new Shortcode_Button() is declared there is an issue with the javascript interactivity of that tinyMCE editor.