Ticket #22446: 22446-ie789-insert.patch
File 22446-ie789-insert.patch, 802 bytes (added by , 12 years ago) |
---|
-
wp-includes/js/media-editor.js
489 489 490 490 workflow = wp.media.editor.get( editor ); 491 491 492 // Save a bookmark of the caret position, needed for IE 493 if ( typeof(tinymce) != 'undefined' && tinymce.activeEditor ) { 494 if ( tinymce.isIE && ! tinymce.activeEditor.isHidden() ) 495 tinymce.activeEditor.windowManager.insertimagebookmark = tinymce.activeEditor.selection.getBookmark(); 496 } 497 492 498 // If the workflow exists, just open it. 493 499 if ( workflow ) { 494 500 workflow.open(); … … 502 508 }; 503 509 504 510 $( wp.media.editor.init ); 505 }(jQuery)); 506 No newline at end of file 511 }(jQuery));