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:
Andrew Ozz
2011-04-15 04:20:12 +00:00
parent 61e17b180f
commit 157571de2a
5 changed files with 4 additions and 23 deletions
-8
View File
@@ -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') ) {