X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fimage%2Fplugin.js;h=4c709b20405018abc4b7a64c0842a026ababc966;hb=f8fc585c18d287eb325c575596d183122486b641;hp=4d808fe5e685c08f00349aecbae24df342b3a11b;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/image/plugin.js b/_source/plugins/image/plugin.js index 4d808fe..4c709b2 100644 --- a/_source/plugins/image/plugin.js +++ b/_source/plugins/image/plugin.js @@ -26,6 +26,14 @@ CKEDITOR.plugins.add( 'image', command : pluginName }); + editor.on( 'doubleclick', function( evt ) + { + var element = evt.data.element; + + if ( element.is( 'img' ) && !element.getAttribute( '_cke_realelement' ) ) + evt.data.dialog = 'image'; + }); + // If the "menu" plugin is loaded, register the menu items. if ( editor.addMenuItems ) { @@ -62,3 +70,12 @@ CKEDITOR.plugins.add( 'image', * config.image_removeLinkByEmptyURL = false; */ CKEDITOR.config.image_removeLinkByEmptyURL = true; + +/** + * Padding text to set off the image in preview area. + * @name CKEDITOR.config.image_previewText + * @type String + * @default "Lorem ipsum dolor..." placehoder text. + * @example + * config.image_previewText = CKEDITOR.tools.repeat( '___ ', 100 ); + */