Skip to content

Commit

Permalink
IBX-9243: linebreaks in Inline custom tags markup (eztemplateinline) …
Browse files Browse the repository at this point in the history
…breakes the editor
  • Loading branch information
GrabowskiM committed Nov 28, 2024
1 parent 27e36a9 commit ed12ab5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import Widget from '@ckeditor/ckeditor5-widget/src/widget';
import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';
import Element from '@ckeditor/ckeditor5-engine/src/view/element';

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

Expand Down Expand Up @@ -92,6 +93,10 @@ class IbexaInlineCustomTagEditing extends Plugin {
const values = {};

for (const configValue of configValuesIterator) {
if (configValue instanceof Element === false) {
continue;
}

const value = configValue.getChild(0)?.data ?? null;

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

0 comments on commit ed12ab5

Please sign in to comment.