Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something like maxlength or max content restrictions #627

Open
Sever1n27 opened this issue Apr 12, 2024 · 0 comments
Open

Something like maxlength or max content restrictions #627

Sever1n27 opened this issue Apr 12, 2024 · 0 comments

Comments

@Sever1n27
Copy link

Is your feature request related to a problem? Please describe.
I would like to be able to limit the number of nodes available for insertion

Describe the solution you'd like
Something like e.preventDefault() in query when the number of nodes in query.getNodes() is greater than or equal to some number
maybe there is already a solution?
Additional context
enabled/disabled editor state won't help, because we won't be able to remove nodes from the editor
I also haven't found a way to dynamically set a canDrop rule for my root canvas container
thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant