Skip to content

Commit

Permalink
Issue #147: Catch "backdrop" in editorSettings may not be defined (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela authored Jan 6, 2025
1 parent 14d6743 commit d978473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tinymce-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {});
}
Expand Down

0 comments on commit d978473

Please sign in to comment.