Changeset 7414
- Timestamp:
- 03/23/12 17:37:00 (14 months ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/plugins/undo/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/undo/plugin.js
r7398 r7414 411 411 restoreImage : function( image ) 412 412 { 413 // Bring editor focused to restore selection. 414 var editor = this.editor, 415 sel; 416 417 if ( image.bookmarks ) 418 { 419 editor.focus(); 420 // Retrieve the selection beforehand. (#8324) 421 sel = editor.getSelection(); 422 } 423 413 424 this.editor.loadSnapshot( image.contents ); 414 425 415 426 if ( image.bookmarks ) 416 { 417 this.editor.focus(); 418 this.editor.getSelection().selectBookmarks( image.bookmarks ); 419 } 427 sel.selectBookmarks( image.bookmarks ); 420 428 else if ( CKEDITOR.env.ie ) 421 429 {
Note: See TracChangeset
for help on using the changeset viewer.
