plugin.js 470 B

12345678910111213141516
  1. CKEDITOR.plugins.add('wikilink',
  2. {
  3. init: function(editor)
  4. {
  5. var pluginName = 'wikilink';
  6. CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/wikilink.js');
  7. editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
  8. editor.ui.addButton('Wikilink',
  9. {
  10. label: 'Wikilink',
  11. command: pluginName,
  12. icon : this.path + 'images/wikilink.gif'
  13. });
  14. }
  15. });