Ticket #3897: 3897_3.patch
File 3897_3.patch, 2.0 KB (added by , 14 years ago) |
---|
-
_source/plugins/image/dialogs/image.js
258 258 // Refresh LockRatio button 259 259 switchLockRatio ( this, true ); 260 260 } 261 262 // Don't show preview if no URL given. 263 if ( this.getContentElement( 'info', 'txtUrl' ).validate() != true ) 264 { 265 this.preview.removeAttribute( 'src' ); 266 this.preview.setStyle( 'display', 'none' ); 267 } 261 268 }, 262 269 onOk : function() 263 270 { … … 403 410 dialog = this.getDialog(); 404 411 var original = dialog.originalElement; 405 412 413 dialog.preview.removeStyle( 'display' ); 414 406 415 original.setCustomData( 'isReady', 'false' ); 407 416 // Show loader 408 417 var loader = CKEDITOR.document.getById( 'ImagePreviewLoader' ); … … 417 426 418 427 updatePreview( dialog ); 419 428 } 429 // Dont show preview if no URL given. 430 else if ( dialog.preview ) 431 { 432 dialog.preview.removeAttribute( 'src' ); 433 dialog.preview.setStyle( 'display', 'none' ); 434 } 420 435 }, 421 436 setup : function( type, element ) 422 437 { -
CHANGES.html
245 245 copy and paste Flash content among different editor instances.</li> 246 246 <li><a href="http://dev.fckeditor.net/ticket/4193">#4193</a> : Automatic font color produced empty span on Firefox 3.5.</li> 247 247 <li><a href="http://dev.fckeditor.net/ticket/4186">#4186</a> : [FF] Fixed First open float panel cause host page scrollbar blinking.</li> 248 <li><a href="http://dev.fckeditor.net/ticket/3897">#3897</a> : Now there is no image previews when the URL is empty in image dialog.</li> 248 249 </ul> 249 250 <h3> 250 251 CKEditor 3.0 RC</h3>