We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm developing a note-taking software. Need to switch between different note files. And the method I have found so far is as follows:
Transforms.delete(editor, { at: { anchor: Editor.start(editor, []), focus: Editor.end(editor, []), }, }) Transforms.removeNodes(editor, {at: [0],}) Transforms.insertNodes(editor, noteObject) Transforms.select(editor, Editor.start(editor, []));
I'm wondering if there is a more simplified way that can be provided to accomplish this group. Because this is a more commonly used function.
I'm not sure if there's a method I'm not aware of
The text was updated successfully, but these errors were encountered:
https://github.com/udecode/plate/blob/main/packages/slate-utils/src/transforms/replaceNode.ts
Sorry, something went wrong.
No branches or pull requests
I'm developing a note-taking software. Need to switch between different note files. And the method I have found so far is as follows:
Transforms.delete(editor, {
at: {
anchor: Editor.start(editor, []),
focus: Editor.end(editor, []),
},
})
Transforms.removeNodes(editor, {at: [0],})
Transforms.insertNodes(editor, noteObject)
Transforms.select(editor, Editor.start(editor, []));
I'm wondering if there is a more simplified way that can be provided to accomplish this group. Because this is a more commonly used function.
I'm not sure if there's a method I'm not aware of
The text was updated successfully, but these errors were encountered: