TinyMCE: if the current editor configuration is without toolbars, prevent errors when adding the labels for custom shortcuts.
Fixes #38063. git-svn-id: https://develop.svn.wordpress.org/trunk@38997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3cb436603a
commit
c4145b769e
@ -549,7 +549,7 @@ tinymce.PluginManager.add( 'wordpress', function( editor ) {
|
||||
});
|
||||
}
|
||||
|
||||
if ( editor.settings.wp_shortcut_labels ) {
|
||||
if ( editor.settings.wp_shortcut_labels && editor.theme.panel ) {
|
||||
var labels = {};
|
||||
var access = 'Shift+Alt+';
|
||||
var meta = 'Ctrl+';
|
||||
|
Loading…
Reference in New Issue
Block a user