WordPress.org

Make WordPress Core

Changeset 22877


Ignore:
Timestamp:
11/27/2012 07:24:56 PM (8 years ago)
Author:
nacin
Message:

Media in Internet Explorer: Properly insert attachments into the editor at the location of the cursor. props azaozz. fixes #22446.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-editor.js

    r22875 r22877  
    502502            id = id || '';
    503503
     504            // Save a bookmark of the caret position, needed for IE
     505            if ( typeof tinymce !== 'undefined' && tinymce.activeEditor && tinymce.isIE && ! tinymce.activeEditor.isHidden() )
     506                tinymce.activeEditor.windowManager.insertimagebookmark = tinymce.activeEditor.selection.getBookmark();
     507
    504508            workflow = wp.media.editor.get( id );
    505509
Note: See TracChangeset for help on using the changeset viewer.