1CKEDITOR.plugins.add( 'note', { 2 icons: 'note', 3 lang: 'en,de', 4 init: function( editor ) { 5 //Plugin logic goes here. 6 editor.addCommand( 'note', new CKEDITOR.dialogCommand( 'noteDialog' ) ); 7 8 editor.ui.addButton( 'Note', { 9 label: editor.lang.note.title, 10 command: 'note', 11 toolbar: 'insert', 12 icon: this.path + 'icons/note.png', 13 }); 14 15 CKEDITOR.dialog.add( 'noteDialog', this.path + 'dialogs/note.js' ); 16 } 17});