insertNodes(): problems with replacement range #2787
Unanswered
steviesocks
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @12joan. This helps get rid of those behaviors, but it causes a new problem for us in that it makes all our nodes children of the one parent node (that we replace the children of). Is there a way to select the editor itself as the parent in the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
We're using the following to replace all nodes in an editor as streaming text updates:
And we're getting a couple strange behaviors.
Expected Behavior
getStartPoint and getEndPoint give accurate range and insertNodes replaces all nodes in the range
Environment
"@udecode/plate": "^25.0.1",
"@udecode/plate-autoformat": "^25.0.1",
"@udecode/plate-combobox": "^25.0.1",
"@udecode/plate-dnd": "^25.0.1",
"@udecode/plate-emoji": "^25.0.1",
"@udecode/plate-floating": "^25.0.1",
"@udecode/plate-link": "^25.0.1",
"@udecode/plate-node-id": "^25.0.1",
"slate": "^0.100.0",
"slate-history": "^0.100.0",
"slate-hyperscript": "^0.100.0",
"slate-react": "^0.101.0"
Funding
Beta Was this translation helpful? Give feedback.
All reactions