Pass the node to unique ID extension generateID
method
#6522
Closed
bshifrin
started this conversation in
Feature Requests
Replies: 2 comments
-
duplicate discussion with patch file attached #6802 |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is released with 3.2.2 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
We plan to use unique ID extension, but it's problematic since there is no way to differentiate nodes types inside
generateID
method. Can we improve this extension and passnode
as an argument?I can prepare PR, once the idea is approved. This change seems to be trivial to me, we currently use Tiptap 2, but have plans to migrate to 3, once it's released.
Use Case
We have multiple external component of various types, all editor nodes map to component instances. Currently, generation of ID is problematic since there is no way to differentiate nodes types inside generateID.
ID example:
component-type-id
, wheretype
is component or node type andid
is unique ID.Type
New Tiptap API
Beta Was this translation helpful? Give feedback.
All reactions