Replies: 1 comment
-
you can override export class ImageNode extends DecoratorNode<JSX.Element> {
//...
// override remove method to do nothing when it's not selected.
remove(): void {
if (!this.isSelected()) {
return;
}
// when it's selected, it goes through default behavior
super.remove();
}
//...
} 2024-05-31.1.24.29.mov |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to prevent an image from being deleted with the backspace key when the image is not focused in the editor?
pls example code 😂😂
Beta Was this translation helpful? Give feedback.
All reactions