Skip to content

Commit fb734bc

Browse files
authored
Issue #150: Move variable to correct place (#151)
1 parent fa7eece commit fb734bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

js/tinymce-integration.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
}
9393
// Override as noop-commands to prevent inline styles clutter on block
9494
// elements. That way indent/outdent are limited to list items.
95-
if (!format.editorSettings.backdrop.allowInlineStyle) {
95+
if (!format.editorSettings.allowInlineStyle) {
9696
editor.addCommand('indent', function () {});
9797
editor.addCommand('outdent', function () {});
9898
}

tinymce.module

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ function _tinymce_js_settings($format, array $existing_settings) {
168168
if ($unregister) {
169169
$options['unregisterFmts'] = $unregister;
170170
}
171-
$options['backdrop']['allowInlineStyle'] = FALSE;
171+
$options['allowInlineStyle'] = FALSE;
172172
}
173173
else {
174-
$options['backdrop']['allowInlineStyle'] = TRUE;
174+
$options['allowInlineStyle'] = TRUE;
175175
}
176176

177177
// Settings from admin UI.

0 commit comments

Comments
 (0)