I’m working on
prosemirror-image-plugin and as Roman in another thread mentioned there are issues with dragging image nodes if they have a nodeview. He says that the following commit in
prosemirror-view broke the beaviour.
I couldn’t make it right. If I return
false from the nodeView’s
update method then the dragging is fine, but then I have issues with an infinite loop if I set the image node’s
src a bit later ( I want to do that because the plugin has a feature that enables getting the image data from an authenticated endpoint ).
I’d have one additional question: does the nodeView’s dom have to reflect
toDOM in the schema? AFAIK they’re important even if one has a nodeView since they are necessary for correct copy & pasting etc, but copying from the editor serializes with
toDOM from the ProseMirror state.
I’m asking because the plugin has an option for a contentDOM title, I’m working on resize arrows, it already has an on-hover layout selector etc, and I don’t want to dig into this if not necessary.
I’ve made a minimal example ( not with the plugin, just a nodeview ) which shows the issue. Thanks & let me know if there’s something I could help with. V