mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixing code formatting in rich-text-editing docs
This commit is contained in:
parent
6b4d1a7570
commit
3aa2cdccba
@ -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);
|
||||
})();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user