From 5055b6316192ccbc55d76c91b52afb0307d8e233 Mon Sep 17 00:00:00 2001 From: indigoxela Date: Mon, 6 Jan 2025 10:27:17 +0100 Subject: [PATCH] Issue #147: Catch "backdrop" in editorSettings may not be defined --- js/tinymce-integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tinymce-integration.js b/js/tinymce-integration.js index 28481fb..bdd1031 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.backdrop && !format.editorSettings.backdrop.allowInlineStyle) { editor.addCommand('indent', function () {}); editor.addCommand('outdent', function () {}); }