So you are adding custom elements to your editable content? I have no idea how that should work, to be honest. There’s only so much ProseMirror can do to patch up browsers’ editing behavior, so this might just be something that you’ll have to avoid.
Well, i was just testing to see what happens with custom elements and shadow dom.
There might be some way to deal with that, though, but it would be application dependent.