Docs
Cloud

Cloud

Upload images and attachments to the cloud.

Loading...

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.

Installation

npm install @udecode/plate-cloud

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