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

git-svn-id: http://core.svn.wordpress.org/trunk@22877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-11-27 19:24:56 +00:00
parent bb51c14983
commit e2bc567095

View File

@ -501,6 +501,10 @@
// Last but not least, fall back to the empty string.
id = id || '';
// Save a bookmark of the caret position, needed for IE
if ( typeof tinymce !== 'undefined' && tinymce.activeEditor && tinymce.isIE && ! tinymce.activeEditor.isHidden() )
tinymce.activeEditor.windowManager.insertimagebookmark = tinymce.activeEditor.selection.getBookmark();
workflow = wp.media.editor.get( id );
// If the workflow exists, open it.