From 51c39b7ccd28d47d69329b3fd3dc97e3e27ee6ba Mon Sep 17 00:00:00 2001 From: indigoxela Date: Mon, 13 Jan 2025 16:36:05 +0100 Subject: [PATCH] Issue #150: Move variable to correct place --- js/tinymce-integration.js | 2 +- tinymce.module | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/tinymce-integration.js b/js/tinymce-integration.js index 28481fb..38462cb 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.allowInlineStyle) { + if (!format.editorSettings.allowInlineStyle) { editor.addCommand('indent', function () {}); editor.addCommand('outdent', function () {}); } diff --git a/tinymce.module b/tinymce.module index b471b34..abcbdc2 100644 --- a/tinymce.module +++ b/tinymce.module @@ -168,10 +168,10 @@ function _tinymce_js_settings($format, array $existing_settings) { if ($unregister) { $options['unregisterFmts'] = $unregister; } - $options['backdrop']['allowInlineStyle'] = FALSE; + $options['allowInlineStyle'] = FALSE; } else { - $options['backdrop']['allowInlineStyle'] = TRUE; + $options['allowInlineStyle'] = TRUE; } // Settings from admin UI.