mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Remove redundant IE restore selection calls for TinyMCE, see #17136
git-svn-id: https://develop.svn.wordpress.org/trunk@17639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -110,18 +110,10 @@ wpgallery = {
|
||||
return window.dialogArguments || opener || parent || top;
|
||||
},
|
||||
|
||||
restoreSelection : function() {
|
||||
var t = this;
|
||||
|
||||
if (tinymce.isIE)
|
||||
t.editor.selection.moveToBookmark(t.editor.windowManager.bookmark);
|
||||
},
|
||||
|
||||
setup : function() {
|
||||
var t = this, a, ed = t.editor, g, columns, link, order, orderby;
|
||||
if ( ! t.mcemode ) return;
|
||||
|
||||
t.restoreSelection();
|
||||
t.el = ed.selection.getNode();
|
||||
|
||||
if ( t.el.nodeName != 'IMG' || ! ed.dom.hasClass(t.el, 'wpGallery') ) {
|
||||
|
||||
Reference in New Issue
Block a user