WordPress.org

Make WordPress Core

Changeset 22943


Ignore:
Timestamp:
11/30/2012 04:54:09 AM (5 years ago)
Author:
ryan
Message:

Correctly insert images at caret position in IE8/7.

Props lessbloat
fixes #22638

File:
1 edited

Legend:

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

    r22937 r22943  
    532532
    533533                // Save a bookmark of the caret position, needed for IE
    534                 if ( tinymce.isIE && editor && ! editor.isHidden() )
     534                if ( tinymce.isIE && editor && ! editor.isHidden() ) {
     535                    editor.focus();
    535536                    editor.windowManager.insertimagebookmark = editor.selection.getBookmark();
     537                }
    536538            }
    537539
Note: See TracChangeset for help on using the changeset viewer.