Skip to content

Commit

Permalink
Issue #147: Fix inline-style logic for indent/outdent
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Jan 7, 2025
1 parent d978473 commit 6e67ba8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions 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 && !format.editorSettings.backdrop.allowInlineStyle) {
if (!format.editorSettings.backdrop.allowInlineStyle) {
editor.addCommand('indent', function () {});
editor.addCommand('outdent', function () {});
}
Expand Down
1 change: 1 addition & 0 deletions tinymce.module
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6e67ba8

Please sign in to comment.