hello , i have a DOM element like this
xx< span>[</ span> x< em>x</ em >x <span >]</ span >xxx
i used handleKeyDown to stop it being deleted, but when i select some text first then pressed backspace, it didn’t work .
not only i need to prevent ‘[’ ‘]’ from being deleted ,i also need to prevent some lines from being deleted too.
i’m thinking about add a property on prose mirror node…
Any idea about preventing delete? Many thanks in advance!