How can I disable the option to delete a custom node from prosesmirror?

How can I disable the option to delete a custom node from prosesmirror?

Probably with filterTransaction, but your question is too vague to say for sure.

@marijn My requirements is that I need to prevent the node from being deleted with backspace or delete or when selected press any key is replaced, Could you give me an example using filterTransaction I was investigating that method but I didn’t find much information, thank you very much for responding

Did you get any solution to prevent deletion of node using filterTransaction?