// BlueField image plugin setup file CKEDITOR.plugins.add('bfimage', { init : function(editor) { CKEDITOR.dialog.add('bfimage', this.path + 'dialogs/image.js' ); editor.addCommand('bfimage', new CKEDITOR.dialogCommand('bfimage')); editor.ui.addButton('BFImage', { label : editor.lang.common.image, command : 'bfimage' }); if (editor.addMenuItems) { editor.addMenuItems( { bfimage : { label : editor.lang.image.menu, command : 'bfimage', group : 'bfimage' } }); } if (editor.contextMenu ) { editor.contextMenu.addListener(function(element, selection) { if (!element || !element.is('img') || element.getAttribute('_cke_realelement')) { return null; } return {bfimage: CKEDITOR.TRISTATE_OFF}; }); } } }); CKEDITOR.config.image_removeLinkByEmptyURL = true;