mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 13:20:20 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user