Make WordPress Core

Ticket #22446: 22446-ie789-insert.patch

File 22446-ie789-insert.patch, 802 bytes (added by azaozz, 12 years ago)
  • wp-includes/js/media-editor.js

     
    489489
    490490                                workflow = wp.media.editor.get( editor );
    491491
     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
    492498                                // If the workflow exists, just open it.
    493499                                if ( workflow ) {
    494500                                        workflow.open();
     
    502508        };
    503509
    504510        $( wp.media.editor.init );
    505 }(jQuery));
    506  No newline at end of file
     511}(jQuery));