plugin.js 543 B

12345678910111213141516
  1. CKEDITOR.plugins.add('asciisvg', {
  2. lang: 'en,es',
  3. icons: 'asciisvg',
  4. init: function(editor) {
  5. $.getScript(this.path+"ASCIIsvgPI.js");
  6. var pluginName = 'asciisvg';
  7. CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/mathjax.js' );
  8. editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName));
  9. editor.ui.addButton('Asciisvg',
  10. {
  11. label: 'Asciisvg',
  12. command: pluginName,
  13. icon : this.path+'icons/'+pluginName+'.png'
  14. });
  15. }
  16. } );