-
-
Notifications
You must be signed in to change notification settings - Fork 575
Feat/draggable inline content; Fix/dragging content within the editor caused duplication #1818
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
base: main
Are you sure you want to change the base?
Feat/draggable inline content; Fix/dragging content within the editor caused duplication #1818
Conversation
@Hector-Chong is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
// if ( | ||
// this.sideMenuDetection === "editor" || | ||
// (event as any).synthetic || | ||
// !event.dataTransfer?.types.includes("blocknote/html") | ||
// ) { | ||
// return; | ||
// } |
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.
intentional?
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.
Sorry, that was a mistake. I was making change on another branch and accidentally push it to this one. I just updated the branch.
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.
Thanks for your PR! This is something I think we would want to support in the library, just one question about it
a9a9521
to
3b62ee1
Compare
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.
From my testing, this does seem to resolve the duplication issue. I'd like for @matthewlipski to take a look at this too since he wrote the original logic
This pull request introduces a draggable prop to inline content in the BlockNote editor. The draggable prop allows custom inline content to be draggable within the editor.
A new example showcasing a draggable button (draggableButton) is also included.
Enregistrement.d.ecran.le.2025-07-04.a.23.35.04.mov
This pull request also includes a fix for an issue where dragging content within the editor caused duplication.
Enregistrement.d.ecran.le.2025-07-04.a.23.37.02.mov