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); })(); 

enter image description here


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -