Changeset 6565 for CKEditor/trunk
- Timestamp:
- 03/18/11 05:11:03 (2 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/image/dialogs/image.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r6564 r6565 80 80 <li><a href="http://dev.ckeditor.com/ticket/6849">#6849</a> : Correct enter key behavior on list item.</li> 81 81 <li><a href="http://dev.ckeditor.com/ticket/7113">#7113</a> : [Webkit]Undesired document scroll on click after scrolling.</li> 82 <li><a href="http://dev.ckeditor.com/ticket/6491">#6491</a> : Undesired image dialog dimension lock reset on url change.</li> 82 83 <li>Updated the following language files:<ul> 83 84 <li><a href="http://dev.ckeditor.com/ticket/7124">#7124</a> : Czech;</li> -
CKEditor/trunk/_source/plugins/image/dialogs/image.js
r6555 r6565 122 122 return null; 123 123 124 var ratioButton = CKEDITOR.document.getById( btnLockSizesId ); 125 126 if ( oImageOriginal.getCustomData( 'isReady' ) == 'true' ) 124 // Check image ratio and original image ratio, but respecting user's preference. 125 if ( value == 'check' ) 127 126 { 128 if ( value == 'check' ) // Check image ratio and original image ratio.127 if ( !dialog.userlockRatio && oImageOriginal.getCustomData( 'isReady' ) == 'true' ) 129 128 { 130 129 var width = dialog.getValueOf( 'info', 'txtWidth' ), … … 142 141 } 143 142 } 144 else if ( value != undefined )145 dialog.lockRatio = value;146 else147 dialog.lockRatio = !dialog.lockRatio;148 143 } 149 else if ( value != 'check' ) // I can't lock ratio if ratio is unknown. 150 dialog.lockRatio = false; 151 144 else if ( value != undefined ) 145 dialog.lockRatio = value; 146 else 147 { 148 dialog.userlockRatio = 1; 149 dialog.lockRatio = !dialog.lockRatio; 150 } 151 152 var ratioButton = CKEDITOR.document.getById( btnLockSizesId ); 152 153 if ( dialog.lockRatio ) 153 154 ratioButton.removeClass( 'cke_btn_unlocked' ); … … 276 277 277 278 this.lockRatio = true; 279 this.userlockRatio = 0; 278 280 this.dontResetSize = false; 279 281 this.firstLoad = true; … … 336 338 // Fill out all fields. 337 339 this.setupContent( IMAGE, this.imageElement ); 338 339 // Refresh LockRatio button340 switchLockRatio ( this, true );341 340 } 342 341 else 343 342 this.imageElement = editor.document.createElement( 'img' ); 343 344 // Refresh LockRatio button 345 switchLockRatio ( this, true ); 344 346 345 347 // Dont show preview if no URL given.
Note: See TracChangeset
for help on using the changeset viewer.
