Features
Image and attachment uploads, automatic server-side image resizing, and more.
Supports drag and drop, paste, and file picker uploads.
Automatic delivery of DPI-specific images.
Size: 47.41 kB
Installation
npm install @udecode/plate-cloud
Copy
Usage
Get a free Portive API key .
To get the value to save to your database, use editor.cloud.getSaveValue()
. This is required for Plate Cloud because of the asynchronous nature of uploads.
API
createCloudAttachmentPlugin
createCloudImagePlugin
createCloudPlugin
createUploadStore
finishUploads
generateSrcAndSrcSet
getInProgressUploads
getSaveValue
onDropCloud
onPasteCloud
uploadFiles
TCloudAttachmentElement
API Plugins
withCloud
withCloudAttachment
withCloudImage
API Components
useCloudAttachmentElement
useCloudImageElement
useUpload