Hi, guys!
- I use the ProseMirror in my Vue project.
- I have auxiliary custom tools in my editor, by the type of menu that appears when text is selected.
My first question:
What is the correct way to insert, for example, an emerging menu into the editor? Right now I build tools around editor by using vue components, It works correctly but I know about the ProseMirror decorations, widgets, I’m curious if this path is fundamentally wrong?
My second question:
I asked my first question because now I need to make a top-level drag handle element for dnd. Do I have to necessarily insert this element into the draggable node? Or is it possible only by using the ProseMirror decorations?
The core realisation of dnd in the ProseMirror works with the selection by the mouse but I need to “select” a node fully by start of dragging by the node handle element. How to make so the behaviour?