Editor: When hiding gallery/image editing buttons, use Sizzle rather than TinyMCE's internal DOM object. Avoids errors in case the elements do not exist, such as in Press This. props azaozz. fixes #22463.
git-svn-id: http://core.svn.wordpress.org/trunk@22883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -368,7 +368,8 @@
|
||||
},
|
||||
|
||||
_hideButtons : function() {
|
||||
tinymce.DOM.hide(['wp_editbtns', 'wp_gallerybtns']);
|
||||
var DOM = tinymce.DOM;
|
||||
DOM.hide( DOM.select('#wp_editbtns, #wp_gallerybtns') );
|
||||
},
|
||||
|
||||
// Resizes the iframe by a relative height value
|
||||
|
||||
Reference in New Issue
Block a user