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: https://develop.svn.wordpress.org/trunk@22883 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da9ff4451d
commit
92e85f9957
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue