Skip to content

Commit

Permalink
IBX-7694: Richtext custom tag attributes don't have effect on existin…
Browse files Browse the repository at this point in the history
…g tags
  • Loading branch information
GrabowskiM committed Jul 22, 2024
1 parent 5ebad1e commit f03aaff
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ class IbexaCustomTagUI extends Plugin {
newValues[name] = attributeView.fieldView.element.value;
});

Object.entries(this.formView.attributeViews).forEach(([name, attributeView]) => {
if (newValues[name] !== undefined) {
return;
}

newValues[name] = attributeView.fieldView.element.value;
});

this.editor.model.change((writer) => {
writer.setAttribute('values', newValues, modelElement);
});
Expand Down

0 comments on commit f03aaff

Please sign in to comment.