diff --git a/js/tinymce-integration.js b/js/tinymce-integration.js index bdd1031..28481fb 100644 --- a/js/tinymce-integration.js +++ b/js/tinymce-integration.js @@ -92,7 +92,7 @@ } // Override as noop-commands to prevent inline styles clutter on block // elements. That way indent/outdent are limited to list items. - if (format.editorSettings.backdrop && !format.editorSettings.backdrop.allowInlineStyle) { + if (!format.editorSettings.backdrop.allowInlineStyle) { editor.addCommand('indent', function () {}); editor.addCommand('outdent', function () {}); } diff --git a/tinymce.module b/tinymce.module index 1e356ef..b471b34 100644 --- a/tinymce.module +++ b/tinymce.module @@ -168,6 +168,7 @@ function _tinymce_js_settings($format, array $existing_settings) { if ($unregister) { $options['unregisterFmts'] = $unregister; } + $options['backdrop']['allowInlineStyle'] = FALSE; } else { $options['backdrop']['allowInlineStyle'] = TRUE;