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:
Andrew Ozz 2016-10-28 20:06:02 +00:00
parent 3cb436603a
commit c4145b769e

View File

@ -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+';