Skip to content

Commit

Permalink
Bump roosterjs-content-model-plugins to 0.21.3 to fix entity delimite…
Browse files Browse the repository at this point in the history
…r issue (#2253)

* Content Model: Do not add entity delimiter to editable entity (#2252)

* plugins 0.21.3: Fix delimiter issue
  • Loading branch information
JiuqingSong authored Dec 9, 2023
1 parent dc72777 commit 4b35c78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ export function normalizeDelimitersInEditor(editor: IEditor) {

function addDelimitersIfNeeded(nodes: Element[] | NodeListOf<Element>) {
nodes.forEach(node => {
if (isEntityElement(node)) {
if (
isNodeOfType(node, 'ELEMENT_NODE') &&
isEntityElement(node) &&
!node.isContentEditable
) {
addDelimiters(node.ownerDocument, node as HTMLElement);
}
});
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"packages-content-model": "0.21.2",
"overrides": {
"roosterjs-editor-core": "8.59.1",
"roosterjs-editor-plugins": "8.59.1"
"roosterjs-editor-plugins": "8.59.1",
"roosterjs-content-model-plugins": "0.21.3"
}
}

0 comments on commit 4b35c78

Please sign in to comment.