Skip to content

Commit a5b2274

Browse files
committed
Merge remote-tracking branch 'origin/4.1' into main
2 parents b86ff30 + ea0bff6 commit a5b2274

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,13 @@ class IbexaInlineCustomTagEditing extends Plugin {
118118
});
119119

120120
conversion.for('upcast').elementToElement({
121+
model: 'inlineCustomTagContent',
121122
view: {
122123
name: 'span',
123124
attributes: {
124125
'data-ezelement': 'ezcontent',
125126
},
126127
},
127-
model: (viewElement, { writer: upcastWriter }) => {
128-
const content = viewElement.getChild(0);
129-
const modelElement = upcastWriter.createElement('inlineCustomTagContent');
130-
131-
upcastWriter.insertText(content.data, modelElement);
132-
133-
return modelElement;
134-
},
135128
});
136129
}
137130

0 commit comments

Comments
 (0)