Set unique id for each node #629
alirezahmz
started this conversation in
General
Replies: 2 comments 4 replies
-
@Saul-Mirone {
type: 'doc',
content: [
{
type: 'paragraph',
attrs: {
id: "I'm unique id"
},
content: [
{
type: 'text',
text: "it's for test"
}
]
}
]
}; |
Beta Was this translation helpful? Give feedback.
1 reply
-
Currently there's no convenient way to do it. The only choice is to extend nodes one by one and add attribute for them. But I do have a plan about it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am stuck in using your package, please help me
How can I set a unique ID for each of the nodes in Milkdown ? The link below is an example of this work in Tiptop
https://tiptap.dev/api/extensions/unique-id
Beta Was this translation helpful? Give feedback.
All reactions