plugin.js 429 B

12345678910111213141516
  1. CKEDITOR.plugins.add( 'twoGisLink', {
  2. icons: 'gis',
  3. init: function( editor ) {
  4. editor.addCommand( 'twoGisLink', new CKEDITOR.dialogCommand( 'twoGisLinkDialog' ) );
  5. editor.ui.addButton( 'twoGisLink', {
  6. label: 'Äîáàâèòü cñûëêó íà 2GIS',
  7. icon: this.path + 'icons/gis.png',
  8. command: 'twoGisLink',
  9. toolbar: 'insert'
  10. });
  11. CKEDITOR.dialog.add( 'twoGisLinkDialog', this.path + 'dialogs/twoGisLink.js' );
  12. }
  13. });