NiclasDev63 / tiptap-extension-global-drag-handle

MIT License
73 stars 13 forks source link

fix disappearence of drag handler when using custom dragHandleSelector class with multiple elements #30

Open dzeroone opened 1 week ago

dzeroone commented 1 week ago

drag handler got hidden with usage of custom class selector.

drag handler element

<div class="custom-drag-handle">
  <button class="drag-handler-btn">Drag</button>
  <button class="add-action-btn">Add</button>
</div>

Editor config

new Editor({
  extensions: [
    GlobalDragHandle.configure({
        dragHandleSelector: ".custom-drag-handle", // default is undefined
    }),
  ],
})