Best way to insert custom nodes into the editor #1258
Unanswered
dkrusenstrahle
asked this question in
Questions & Help
Replies: 1 comment 1 reply
-
It depends. You can use insertContent or setNode or replaceRange. Maybe it is best to look directly into the code until the documentation is complete. |
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
-
Hello,
I am building a Tiptap 2.0 editor.
In this editor I have created a custom node called blockLink ().
How do I insert instances of this into the editor?
This kind of works but not sure if it is correct way?
this.editor.chain().focus().setBlockLink().run();
The SetBlockLink method looks like this and I have no idea what I am doing:
Beta Was this translation helpful? Give feedback.
All reactions