Replies: 1 comment 8 replies
-
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a created a custom DecoratorBlockNode used for displaying media (image, video, meta info) in the editor. There is a button inside this node used for deleting the node. I would like to prevent the user from deleting this node when typing in the editor (ie. hitting the backspace command).
Current approach to this is below. The caveat is, it seems to work fine when the backspace is pressed while on an empty line right before the node. It does not work when the backspace is pressed on a line with text. Does anyone know why that might be?
Beta Was this translation helpful? Give feedback.
All reactions