Changeset 7518
- Timestamp:
- 06/27/12 18:23:51 (11 months ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/selection/plugin.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r7517 r7518 62 62 <li><a href="http://dev.ckeditor.com/ticket/8985">#8985</a> : Better handling of ENTER key events on dialogs.</li> 63 63 <li><a href="http://dev.ckeditor.com/ticket/8925">#8925</a> : [Firefox] Unexpected page scroll on large floating block when editor is re-focused.</li> 64 <li><a href="http://dev.ckeditor.com/ticket/8978">#8978</a> : [IE] Saved editor text selection is lost after close menu.</li> 64 65 </ul> 65 66 <h3> -
CKEditor/trunk/_source/plugins/selection/plugin.js
r7477 r7518 280 280 // than firing the selection change event. 281 281 282 var saved Range,282 var savedBookmark, 283 283 saveEnabled, 284 284 restoreEnabled = 1; … … 295 295 296 296 // Give the priority to locked selection since it probably 297 // reflects the actual situation, besides locked selection 298 // could be interfered because of text nodes normalizing. 299 // (#6083, #6987) 297 // reflects the actual situation. (#6083, #6987) 300 298 var lockedSelection = doc.getCustomData( 'cke_locked_selection' ); 301 299 if ( lockedSelection ) … … 306 304 // Then check ff we have saved a range, restore it at this 307 305 // point. 308 else if ( saved Range&& restoreEnabled )306 else if ( savedBookmark && restoreEnabled ) 309 307 { 308 var range = doc.getSelection().getNative().createRange(); 309 range.moveToBookmark( savedBookmark ); 310 310 // Well not break because of this. 311 try { savedRange.select(); } catch (e) {}312 saved Range= null;311 try { range.select(); } catch (e) {} 312 savedBookmark = null; 313 313 } 314 314 }); … … 533 533 } 534 534 535 savedRange = nativeSel && sel.getRanges()[ 0 ]; 535 // Create an IE Range bookmark to defeat possible text node normalization. 536 try { savedBookmark = nativeSel && nativeSel.createRange().getBookmark(); } 537 catch(er){} 536 538 537 539 checkSelectionChangeTimeout.call( editor );
Note: See TracChangeset
for help on using the changeset viewer.
