I would like to be able to drag blocks of text from one location on the editor to another. I can do this for custom blots, but not for typed text on the editor.
I tried extending the Block blot so that p tags have the draggable attribute set to true. Once I do this, the editor behaves strangely - I can no longer type/focus anywhere. It's still responsive but I cannot type. It's as if the draggable attribute makes the editor non-editable.
Hope someone can shed some light. I'm trying to get text (p tags) to be draggable in the editor, or change the text to be encapsulated in custom blots.
Hi @imnapo
Thank you for creating this module.
I would like to be able to drag blocks of text from one location on the editor to another. I can do this for custom blots, but not for typed text on the editor.
I tried extending the Block blot so that p tags have the draggable attribute set to true. Once I do this, the editor behaves strangely - I can no longer type/focus anywhere. It's still responsive but I cannot type. It's as if the draggable attribute makes the editor non-editable.
Then after Quill has been initiated, I set listeners for the drop event:
Hope someone can shed some light. I'm trying to get text (p tags) to be draggable in the editor, or change the text to be encapsulated in custom blots.
Thanks for any input.