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:
parent
bb51c14983
commit
e2bc567095
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue