GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing tiptap.dev — Drag Handle React | Tiptap Editor Docs Have you ever wanted to drag nodes around your react-based editor? Well, we did too—so here's an extension for that. The InstallPropsAll props follow the same structure as the DragHandle extension. childrenThe content that should be displayed inside of the drag handle. computePositionConfigConfiguration for position computation of the drag handle using the floating-ui/dom package. You can pass any options that are available in the floating-ui documentation. Default: onNodeChangeReturns a node or null when a node is hovered over. This can be used to highlight the node that is currently hovered over. Default: getReferencedVirtualElementA function that returns the virtual element for the drag handle. This is useful when the menu needs to be positioned relative to a specific DOM element. Default: lockedLocks the draghandle in place and visibility. If the drag handle was visible, it will remain visible until unlocked. If it was hidden, it will remain hidden until unlocked. Default: pluginKeyThe key that should be used to store the plugin in the editor. This is useful if you have multiple drag handles in the same editor. Default: onElementDragStartA function that is called when the element starts to be dragged. This can be used to add custom logic when dragging starts. onElementDragEndA function that is called when the element stops being dragged. This can be used to add custom logic when dragging ends. nestedEnable drag handles for nested content such as list items, blockquotes, and other nested structures. When enabled, the drag handle will appear for nested blocks, not just top-level blocks. A rule-based scoring system determines which node to target based on cursor position and configured rules. Default: Full Example with Nested SupportPerformance TipWhen using React state to toggle the See the DragHandle nested documentation for detailed configuration options including edge detection, custom rules, and allowed containers. CommandsSee the DragHandle extension for available editor commands. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |