I'm trying to figure out how I can convert a ckeditor plugin to an external plugin.
eg
The simple plugin “about”.
I Rename the folder to about2
I put in the folder about2 the file plugin.js and an icon about2.png
The code of the file plugin.js is:
(function () { var about2Cmd = { exec: function (editor) { editor.openDialog('about2'); return } }; CKEDITOR.plugins.add('about2', { requires: ['dialog'], init: function (editor) { var commandName = 'about2'; editor.addCommand(commandName, about2Cmd); editor.ui.addButton('About2', { label: "about2", command: commandName, icon: this.path + "about2.png" }); CKEDITOR.dialog.add(commandName, CKEDITOR.getUrl(this.path + 'dialogs/images/.js')) } }) })();