Skip to content

Commit

Permalink
chore!: Remove unused onImageNodeDelete option
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rfgamaral committed Mar 20, 2024
1 parent 90c41e1 commit e9d5fd3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/extensions/rich-text/rich-text-image.ts
Expand Up @@ -63,7 +63,7 @@ type RichTextImageOptions = {
acceptedImageMimeTypes: string[]

/**
* Renders the image node inline (e.g., <p><img src="spacer.gif"></p>). By default images are on
* Renders the image node inline (e.g., <p><img src="doist.jpg"></p>). By default images are on
* the same level as paragraphs.
*/
inline: boolean
Expand All @@ -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
}

/**
Expand Down

0 comments on commit e9d5fd3

Please sign in to comment.