IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
410 | 410 | |
411 | 411 | restoreImage : function( image ) |
412 | 412 | { |
| 413 | // Bring editor focused to restore selection. |
| 414 | var editor = this.editor; |
| 415 | editor.focus(); |
| 416 | |
| 417 | // Retrieve the selection before hand. (#8324) |
| 418 | var sel = editor.getSelection(); |
413 | 419 | this.editor.loadSnapshot( image.contents ); |
414 | 420 | |
415 | 421 | if ( image.bookmarks ) |
416 | | { |
417 | | this.editor.focus(); |
418 | | this.editor.getSelection().selectBookmarks( image.bookmarks ); |
419 | | } |
| 422 | sel.selectBookmarks( image.bookmarks ); |
420 | 423 | else if ( CKEDITOR.env.ie ) |
421 | 424 | { |
422 | 425 | // IE BUG: If I don't set the selection to *somewhere* after setting |