Fix enqueueing of the right scripts when more than one instance of the editor, fix inserting images in full screen mode, see #17144

git-svn-id: https://develop.svn.wordpress.org/trunk@18799 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-09-28 07:26:34 +00:00
parent 2a7b8b4764
commit 13c72ba193
4 changed files with 26 additions and 11 deletions
+6 -4
View File
@@ -12,10 +12,12 @@ function send_to_editor(h) {
} else if ( !qt ) {
return false;
}
}
if ( !ed && mce && wpActiveEditor )
ed = tinymce.get(wpActiveEditor);
} else {
if ( mce && tinymce.activeEditor && (tinymce.activeEditor.id == 'mce_fullscreen' || tinymce.activeEditor.id == 'wp_mce_fullscreen') )
ed = tinymce.activeEditor;
else
ed = tinymce.get(wpActiveEditor);
}
if ( ed && !ed.isHidden() ) {
// restore caret position on IE