hello, i run into a problem ,when i try to create inline text node and make it editable.
< p><span data-id="xxxxxx">yyyy</s pan></p >
the text node i created only have 1position in the doc and when i click the cursor on top of it ,
the cursor can only select the whole node ,
my goal is to create a textNode more like a span , and it can have data of it’s own, also, it can be editable, (cursor can be inside it can cursor can be changed by code)
i know in prose mirror, inline node (strong, em) are marks
can anyone tell me how to create new mark of my own ? or any other approach. the text inside the ‘’ must be editable, and it must have some data in it , because it’s more like an input element , the content insert it must be collected and send to a server