-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Drag and drop functionality #1
Comments
Hi @jelleroorda thank you very much! That's actually a very nice touch. I'd have to research and play around a bit to see how that would become possible in code. In the meantime, let me know if you already have any insight on how to implement this |
Hey @sereneinserenade! Your extension is very useful. I'm learning how to create extension for Tiptap, and my main goal is "merging" your Extension with coolswitch extension for Drag And Drop and upload support, in case of images I mean. I'm rushing about it and try to understand how to do that, but both logics, at least for me, are uneven. Would you mind putting in the right direction to do this? This process would be end in a PR for the extension. Thanks in advanced if any help is available. |
hey, @mrcego I've already made a hope that helps |
I have implemented the plugin, but I'm facing two issues now:
Could I sharing with you a repro link, if you have time to check it? |
For the drag and drop functionality, I added the <img
v-if="mediaType === 'img'"
v-bind="node.attrs"
ref="resizableImg"
class="rounded-lg"
:class="[`${isFloat && `float-${props.node.attrs.dataFloat}` || ''}`, `${isAlign && `align-${props.node.attrs.dataAlign}` || ''}`]"
draggable="true"
data-drag-handle
> |
Hey @sereneinserenade, great work!
I'm just leaving a feature request here after checking out the demo. It would be great if it were possible to drag and drop media to other places in the text. For example, when you add an image and then float it left. It would be great if you could drag it in front of some text so the text would go around the image.
The text was updated successfully, but these errors were encountered: