mirror of
git://develop.git.wordpress.org/
synced 2025-04-04 12:12:41 +02:00
Editor: Hide the quicktags toolbar when JavaScript is disabled.
This adds the `hide-if-no-js` class to the quicktags toolbar in the Classic Editor. This prevents an empty space from showing when JavaScript is disabled. Props DeusTron, sabernhardt, Boniu91, poena. Fixes #40570. git-svn-id: https://develop.svn.wordpress.org/trunk@50980 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6296427dd7
commit
dda2f6af36
@ -249,7 +249,7 @@ final class _WP_Editors {
|
||||
$toolbar_id = 'qt_' . $editor_id_attr . '_toolbar';
|
||||
}
|
||||
|
||||
$quicktags_toolbar = '<div id="' . $toolbar_id . '" class="quicktags-toolbar"></div>';
|
||||
$quicktags_toolbar = '<div id="' . $toolbar_id . '" class="quicktags-toolbar hide-if-no-js"></div>';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user