Skip to content

Commit

Permalink
Integrate #2431 (Fix insertNode: Do not reselect if updateCursor is f…
Browse files Browse the repository at this point in the history
…alse) into release and publish 0.26.2 (#2432)

* Fix insertNode: Do not reselect if updateCursor is false (#2431)

* Patch #2431
  • Loading branch information
JiuqingSong authored Feb 20, 2024
1 parent ccc9260 commit 9caacaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class EditorAdapter extends StandaloneEditor implements IEditor {

const selection = insertNode(contentDiv, this.getDOMSelection(), node, option);

if (selection) {
if (selection && option.updateCursor) {
this.setDOMSelection(selection);
}
}
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packages": "8.60.0",
"packages-ui": "8.55.0",
"packages-content-model": "0.26.1",
"packages-content-model": "0.26.2",
"overrides": {
"roosterjs-editor-plugins": "8.60.2",
"roosterjs-editor-adapter": "0.26.0"
Expand Down

0 comments on commit 9caacaf

Please sign in to comment.