From e9d5fd37fc2437ef56b9f0a62f7f35b6159ac7d3 Mon Sep 17 00:00:00 2001 From: Ricardo Amaral Date: Wed, 20 Mar 2024 16:00:08 +0000 Subject: [PATCH] chore!: Remove unused `onImageNodeDelete` option BREAKING CHANGE: This option was unused and was not intended for consumer use. However, its removal technically constitutes a breaking change, so we have marked it accordingly. --- src/extensions/rich-text/rich-text-image.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/extensions/rich-text/rich-text-image.ts b/src/extensions/rich-text/rich-text-image.ts index ed6cece0..2dc0cae0 100644 --- a/src/extensions/rich-text/rich-text-image.ts +++ b/src/extensions/rich-text/rich-text-image.ts @@ -63,7 +63,7 @@ type RichTextImageOptions = { acceptedImageMimeTypes: string[] /** - * Renders the image node inline (e.g.,

). By default images are on + * Renders the image node inline (e.g.,

). By default images are on * the same level as paragraphs. */ inline: boolean @@ -82,11 +82,6 @@ type RichTextImageOptions = { * The event handler that is fired when an image file is pasted. */ onImageFilePaste?: (file: File) => void - - /** - * The event handler that should be fired when an image node is deleted. - */ - onImageNodeDelete?: (attachmentId: string) => void } /**