Docs
Image Placeholder
Image Placeholder
Add placeholder for images like notion in the editor.
Installation
Run the following command to install the extension & associated toolbar component.
Copy & paste the following code in your @lib/utils.ts
file.
Usage
Settings
HTMLAttributes
Configure the HTML attributes for the image placeholder.
onDrop
Configure the onDrop handler for the image placeholder.
onDropRejected
Configure the onDropRejected handler for the image placeholder.
onEmbed
Configure the onEmbed handler for the image placeholder.
allowedMimeTypes
Configure the allowed mime types for the image placeholder.
maxFiles
Configure the maximum number of files for the image placeholder.
maxSize
Configure the maximum size for the image placeholder.
Commands
insertImagePlaceholder
Insert the placholder for the image with the following command.