Hello ProseMirror community,
I’m new to ProseMirror and need some assistance with marks in the editor.
My goal is to wrap text, or text selection with a web component’s custom element. I achieved this with a custom mark, and it worked as expected until I tried to define two marks in the document.
The creation of the more than 1 mark works fine and multiple custom marks can be created.
It is when the ProseMirror editor gets created and parse’s the DOM with more than one custom mark, the web component will be created indefinitely until the browser runs out of memory.
I have tested the creation of my web component in an isolated environment and did not experience this bug, it appears to be related to when the custom element gets “rendered” in prose mirror.
I could provide more information and code if needed.