Hello,
I created a simplified Glitch :・゚✧ to demonstrate a drag and drop problem I’m having.
Nodes in the schema are the following and I’m also using prosemirror-dropcursor plugin:
-
doc
node allows oneouterNode
. -
outerNode
allows one or moreinnerNode
. -
innerNode
allows one or moreparagraph
.
When dragging innerNode
s inside outerNode
I can see the drop cursor and dropping works as it should by the schema restrictions.
However, innerNode
s seem to be visually draggable outside the outerNode
too, even not allowed by the schema. Dropping those there throws Uncaught TypeError: Cannot read property 'nodeSize' of undefined
.
So wondering if I’m missing something in the schema to prevent this from happening, or could this be a bug?