Skip to content

How to edit each paragraph node correctly? #2259

Discussion options

You must be logged in to vote

Mutating the dom directly is not supported by ProseMirror. You have to iterate over state.doc.descendants and create a transaction to change the state.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SF-Simon
Comment options

@philippkuehn
Comment options

Answer selected by SF-Simon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants