Image sources

Configure how users add images to widgets

The editor supports four image source options. By default, only External Link is available. Other options require additional configuration.

Available Options

OptionDescriptionDefault
External LinkInsert images by URLYes
My ImagesUpload to your storageNo
Image LibraryStock images from Pexels and PixabayNo
AI GenerationGenerate images with AIComing soon

External Link

Users paste an image URL directly. The image loads from the original source.

window['ClaspoEditor'].init({
  // External link works without additional configuration
});

My Images

Users upload and manage images directly in the editor. Two integration options are available.

Option 1: Custom Storage

Implement your own storage backend. You provide the infrastructure and implement the required API methods.

Required API Methods

Implement these methods in your EditorApiConfig:

MethodPurpose
uploadImageUpload an image file
uploadImageByUrlUpload an image from external URL
getUserImagesFetch user-uploaded images
removeFileDelete an uploaded file

Option 2: Claspo Managed Storage

Claspo provides managed image storage as a service. Contact the support team for availability and configuration details.

Image Library

Users search and insert stock images from Pexels and Pixabay.

This option requires API keys from stock image providers. Contact support to enable.

AI Generation

Generate images using AI directly in the editor.

This feature is coming soon.

Enabling Additional Options

By default, only External Link is active. To enable other options, contact the Claspo support team.