Skip to content

Commit 640419c

Browse files
authored
IBX-9243: linebreaks in Inline custom tags markup (eztemplateinline) breakes the editor (#194)
1 parent f6b1f85 commit 640419c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bundle/Resources/public/js/CKEditor/custom-tags/inline-custom-tag/inline-custom-tag-editing.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
22
import Widget from '@ckeditor/ckeditor5-widget/src/widget';
33
import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';
4+
import Element from '@ckeditor/ckeditor5-engine/src/view/element';
45

56
import IbexaInlineCustomTagCommand from './inline-custom-tag-command';
67

@@ -92,6 +93,10 @@ class IbexaInlineCustomTagEditing extends Plugin {
9293
const values = {};
9394

9495
for (const configValue of configValuesIterator) {
96+
if (configValue instanceof Element === false) {
97+
continue;
98+
}
99+
95100
const value = configValue.getChild(0)?.data ?? null;
96101

97102
values[configValue.getAttribute('data-ezvalue-key')] = value;

0 commit comments

Comments
 (0)