Correctly insert images at caret position in IE8/7.

Props lessbloat
fixes #22638


git-svn-id: https://develop.svn.wordpress.org/trunk@22943 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2012-11-30 04:54:09 +00:00
parent e746a5dbb5
commit 870250e617

View File

@ -531,8 +531,10 @@
}
// Save a bookmark of the caret position, needed for IE
if ( tinymce.isIE && editor && ! editor.isHidden() )
if ( tinymce.isIE && editor && ! editor.isHidden() ) {
editor.focus();
editor.windowManager.insertimagebookmark = editor.selection.getBookmark();
}
}
// Last but not least, fall back to the empty string.