Index: _source/plugins/image/dialogs/image.js =================================================================== --- _source/plugins/image/dialogs/image.js (revision 4102) +++ _source/plugins/image/dialogs/image.js (working copy) @@ -258,6 +258,13 @@ // Refresh LockRatio button switchLockRatio ( this, true ); } + + // Dont show preview if no URL given. + if ( !CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtUrl' ) ) ) + { + this.preview.removeAttribute( 'src' ); + this.preview.setStyle( 'display', 'none' ); + } }, onOk : function() { @@ -403,6 +410,8 @@ dialog = this.getDialog(); var original = dialog.originalElement; + dialog.preview.removeStyle( 'display' ); + original.setCustomData( 'isReady', 'false' ); // Show loader var loader = CKEDITOR.document.getById( 'ImagePreviewLoader' ); @@ -417,6 +426,12 @@ updatePreview( dialog ); } + // Dont show preview if no URL given. + else if ( dialog.preview ) + { + dialog.preview.removeAttribute( 'src' ); + dialog.preview.setStyle( 'display', 'none' ); + } }, setup : function( type, element ) { Index: CHANGES.html =================================================================== --- CHANGES.html (revision 4102) +++ CHANGES.html (working copy) @@ -245,6 +245,7 @@ copy and paste Flash content among different editor instances.