Skip to content

Plugin registration order breaks node dragging feature #7537

@kawamoto

Description

@kawamoto

Affected Packages

@tiptap/extension-drag-handle

Version(s)

>= 3.17.0

Bug Description

The node dragging functionality does not work when other prose-mirror plugins are registered after the DragHandle plugin. This issue is caused by how event listeners are managed internally within the DragHandle plugin, which leads to them being dropped during the registration of later plugins.

Browser Used

Chrome

Code Example URL

https://codesandbox.io/p/devbox/stupefied-hamilton-qln86g?workspaceId=ws_2C3drHQW5UzNDt2Xe5dnaV

Expected Behavior

The node dragging feature works even if other prose-mirror plugins are registered after the DragHandle plugin.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions