-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add option to allow task items to be checkable (uncontrolled) #2474
Conversation
Useful for drafting interactive documents. Could see this expanding to potentially also support passing a callback? Will happily update documentation if this approach is accepted!
👷 Deploy request for tiptap-embed pending review.Visit the deploys page to approve it
|
Hey, thanks! I’m happy to accept a An update for the docs would be great too ✌️ |
I think this could be achieved via: if (!editor.isEditable && onReadOnlyChecked) {
onReadOnlyChecked(node, checked);
} after if (editor.isEditable && typeof getPos === 'function') { ... } |
Think I did what y'all requested, let me know if this works @philippkuehn @bkempe! |
Ping @philippkuehn @bkempe |
@kaspnilsson It's not up to me to approve, but it looks great :) |
@kaspnilsson One thing that might be nice: revert the change if |
Hey @kaspnilsson - looks nice! I think we have some linting issues. Could you resolve them? I'll make sure to take a look again when you're done so we can get your work merged! 👍 |
@bdbch done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question about the dependencies. Otherwise looks good.
Useful for drafting interactive documents. Could see this expanding to potentially also support passing a callback?
Will happily update documentation if this approach is accepted!