Skip to content

Commit

Permalink
IBX-5147: [Rich text field type] Closing custom tag before finishing …
Browse files Browse the repository at this point in the history
…edition causes edition to hover. (#75)
  • Loading branch information
GrabowskiM authored Mar 6, 2023
1 parent 24e3c87 commit a0f96e8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ class IbexaCustomTagUI extends Plugin {
const modelElement = this.editor.model.document.selection.getSelectedElement();

this.editor.model.change((writer) => {
if (this.balloon.hasView(this.attributesView)) {
this.hideAttributes();
}

writer.remove(modelElement);
});
}
Expand Down

0 comments on commit a0f96e8

Please sign in to comment.