You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I'm trying to insert a text in a specific path by using Transform.insertText and I'm receiving the Cannot get the end point in the node at path [] because it has no end text node.
Based on this path I'm extracting the endpoint manually to confirm the path using -> Editor.end(editor, path) and the result is `[ 0, 0, 0], which I think is expected since that points directly to the text inside the paragraph.
After spending days on this I realized that if I remove the new/second page from the nodes the error disappears. I think that Slate is ignoring the path that I'm passing [0,0] and Transforms.insertText its always getting the latest node from the editor.children.
Any idea why is this happening?
Environment
Slate Version: 0.81.1
Slate-react: 0.81.0
Operating System: OS
Browser: Chrome
The text was updated successfully, but these errors were encountered:
Description
I'm trying to insert a text in a specific path by using
Transform.insertText
and I'm receiving the Cannot get the end point in the node at path [] because it has no end text node.This is the editor's children's structure
I'm inserting a custom text in the paragraph
Based on this path I'm extracting the endpoint manually to confirm the path using ->
Editor.end(editor, path)
and the result is `[ 0, 0, 0], which I think is expected since that points directly to the text inside the paragraph.After spending days on this I realized that if I remove the new/second page from the nodes the error disappears. I think that Slate is ignoring the path that I'm passing
[0,0]
andTransforms.insertText
its always getting the latest node from theeditor.children
.Any idea why is this happening?
Environment
The text was updated successfully, but these errors were encountered: