plugin.js 483 B

123456789
  1. CKEDITOR.plugins.add('ckeditorfa',{
  2. icons:'ckeditorfa',
  3. init:function(editor){
  4. editor.addCommand('ckeditorfa', new CKEDITOR.dialogCommand('ckeditorFaDialog',{allowedContent:'span(!fa)'}));
  5. editor.ui.addButton('ckeditorfa',{label:'FontAwesome icons',command:'ckeditorfa',toolbar:'insert',icon:this.path + 'icons/ckeditorfa.png'});
  6. CKEDITOR.dialog.add('ckeditorFaDialog', this.path + 'dialogs/ckeditorfa.js');
  7. CKEDITOR.document.appendStyleSheet(this.path + 'css/ckeditorfa.css');
  8. }
  9. });