Skip to content

Commit

Permalink
Issue #150: Move variable to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Jan 13, 2025
1 parent fa7eece commit 51c39b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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.allowInlineStyle) {
editor.addCommand('indent', function () {});
editor.addCommand('outdent', function () {});
}
Expand Down
4 changes: 2 additions & 2 deletions tinymce.module
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 51c39b7

Please sign in to comment.