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
| Option | Description | Default |
|---|---|---|
| External Link | Insert images by URL | Yes |
| My Images | Upload to your storage | No |
| Image Library | Stock images from Pexels and Pixabay | No |
| AI Generation | Generate images with AI | Coming 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:
| Method | Purpose |
|---|---|
uploadImage | Upload an image file |
uploadImageByUrl | Upload an image from external URL |
getUserImages | Fetch user-uploaded images |
removeFile | Delete 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.
Updated 1 day ago
