javascript - TinyMCE error "z is undefined " -
i want add custom button in tinymce editor in wordpress. trying following code, works gives following error (please see image below). unable figure out causing problem, i'll appreciate help.
(function () { tinymce.create("tinymce.plugins.mytest", { createcontrol: function ( btn, e ) { if ( btn == "custom_button" ) { var = this; var btn = e.createsplitbutton('custom_button', { title: "test", }); return btn; } return null; }, }); tinymce.pluginmanager.add("mytest", tinymce.plugins.mytest); })();
Comments
Post a Comment