Fixing code formatting in rich-text-editing docs

This commit is contained in:
Sean Harvey 2013-01-24 12:50:55 +13:00
parent 6b4d1a7570
commit 3aa2cdccba

View File

@ -110,22 +110,20 @@ simple example of a plugin that adds a button to the editor:
:::js
(function() {
tinymce.create('tinymce.plugins.myplugin', {
init : function(ed, url) {
var self = this;
ed.addButton ('myplugin', {
'title' : 'My plugin',
'image' : url+'/myplugin.png',
'onclick' : function () {
alert('Congratulations! Your plugin works!');
}
});
},
getInfo : function() {
return {
longname : 'myplugin',
@ -136,7 +134,7 @@ simple example of a plugin that adds a button to the editor:
};
}
});
tinymce.PluginManager.add('myplugin', tinymce.plugins.myplugin);
})();