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

Drag and drop does not work when using Vue2 for node view #1234

Closed
kavadas opened this issue Apr 26, 2021 · 2 comments
Closed

Drag and drop does not work when using Vue2 for node view #1234

kavadas opened this issue Apr 26, 2021 · 2 comments
Assignees
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@kavadas
Copy link

kavadas commented Apr 26, 2021

Description
Drag and drop does not work when using Vue2 for node view. Haven't tried with other options, so I am not sure if this is related with Vue integration only.

Steps to reproduce the bug
Steps to reproduce the behavior:

  1. Create a custom node using Vue 2 for it's node view.
  2. Try to drag the node in the editor.
  3. You will notice that the node is not draggable no matter what options you use (draggable: true for example).

I have not created a sandbox since you can see the issue in the documentation site:

Just try to drag the node view on the above pages and you will see the issue.

Regards

@kavadas kavadas added Type: Bug The issue or pullrequest is related to a bug v2 labels Apr 26, 2021
@hanspagel hanspagel self-assigned this Apr 27, 2021
@philippkuehn
Copy link
Contributor

philippkuehn commented Apr 27, 2021

We provide drag handle support for our node view implementations (vue, react). This isn’t well documented right now.
demo: https://www.tiptap.dev/guide/node-views/examples/#drag-handles

Add data-drag-handle to any element within your node view to make it draggable.

@kavadas
Copy link
Author

kavadas commented Apr 27, 2021

@philippkuehn Apologies for missing that. Thank you for clarifying. I confirm that this works as expected. Added a handle with the data-drag-handle attribute in my custom node and it is now draggable.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

3 participants