Editor: hide the DFW v2 button when editor-expand is off. Fixes #30568.

git-svn-id: https://develop.svn.wordpress.org/trunk@30711 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2014-12-02 20:39:13 +00:00
parent 9dba6cd0a7
commit 36dd60705f
2 changed files with 11 additions and 1 deletions

View File

@ -1244,6 +1244,16 @@ table.links-table {
/* DFW 2
-------------------------------------------------------------- */
#wp-content-wrap .mce-wp-dfw,
#qt_content_dfw {
display: none;
}
.wp-editor-expand #wp-content-wrap .mce-wp-dfw,
.wp-editor-expand #qt_content_dfw {
display: inline-block;
}
.focus-on .wrap > h2,
.focus-on #wpfooter,
.focus-on .postbox-container,

View File

@ -2044,7 +2044,7 @@ final class WP_Internal_Pointers {
public static function pointer_wp410_dfw() {
// Don't show when editor-scrolling is not used.
if ( empty( $GLOBALS['_content_editor_dfw'] ) ) {
if ( empty( $GLOBALS['_wp_editor_expand'] ) ) {
return;
}