plugin.js 477 B

1234567891011121314
  1. CKEDITOR.plugins.add( 'persone', {
  2. icons: 'persone',
  3. init: function( editor ) {
  4. editor.addCommand( 'persone', new CKEDITOR.dialogCommand( 'personeDialog' ) );
  5. editor.ui.addButton( 'Persone', {
  6. label: 'Äîáàâèòü ïåðñîíó',
  7. icon : this.path + 'icons/persone.jpg',
  8. command: 'persone',
  9. toolbar: 'insert,9'
  10. });
  11. CKEDITOR.dialog.add( 'personeDialog', this.path + 'dialogs/persone.php' );
  12. }
  13. });