text label for tinyMCE button
-
Is there a way of have text in a tinyMCE button instead of an image?
this is what I have right now:(function() { tinymce.create('tinymce.plugins.wrong_right', { init : function(ed, url) { ed.addButton('wrong', { title : 'Add a wrong', //image : url+'/image.png', onclick : function() { ed.selection.setContent('[wrong]' + ed.selection.getContent() + '[/wrong]'); } }); ed.addButton('right', { title : 'Add a right', //image : url+'/image.png', onclick : function() { ed.selection.setContent('[right]' + ed.selection.getContent() + '[/right]'); } }); }, createControl : function(n, cm) { return null; }, }); tinymce.PluginManager.add('wrong', tinymce.plugins.wrong_right); tinymce.PluginManager.add('right', tinymce.plugins.wrong_right); })();
The topic ‘text label for tinyMCE button’ is closed to new replies.