WordPress.org

Make WordPress Core

Ticket #22446: 22446-ie789-insert2.patch

File 22446-ie789-insert2.patch, 701 bytes (added by ocean90, 7 months ago)

Refreshed

  • wp-includes/js/media-editor.js

     
    503503 
    504504                        workflow = wp.media.editor.get( id ); 
    505505 
     506                        // Save a bookmark of the caret position, needed for IE 
     507                        if ( typeof(tinymce) != 'undefined' && tinymce.activeEditor ) { 
     508                                if ( tinymce.isIE && ! tinymce.activeEditor.isHidden() ) 
     509                                        tinymce.activeEditor.windowManager.insertimagebookmark = tinymce.activeEditor.selection.getBookmark(); 
     510                        } 
     511 
    506512                        // If the workflow exists, open it. 
    507513                        // Initialize the editor's workflow if we haven't yet. 
    508514                        if ( workflow )