Skip to content

Insert nodes into editor from and external editor state #4867

Answered by acywatson
mariusplanable asked this question in Q&A
Discussion options

You must be logged in to vote

Try this:

https://codesandbox.io/s/lexical-inserting-nodes-forked-ryznvg?file=/src/plugins/InsertExternalNodesPlugin.js

$parseSerializedNode is better for when you don't want to deal with an entire editor state.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mariusplanable
Comment options

Comment options

You must be logged in to vote
2 replies
@mariusplanable
Comment options

@acywatson
Comment options

Answer selected by mariusplanable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants