Cloud Configuration
Overview
The TinyMCE bundle supports loading TinyMCE from the cloud (Tiny Cloud CDN) instead of using the bundled version. This is useful when you want to:
- Always use the latest TinyMCE version without updating the bundle
- Reduce bundle size by loading assets from CDN
- Use TinyMCE Cloud features that require cloud hosting
- Leverage CDN performance and caching
Configuration
To configure TinyMCE to load from the cloud, add the script_url parameter to your bundle configuration:
# config/packages/pimcore_tinymce.yaml
pimcore_tinymce:
script_url: "https://cdn.tiny.cloud/1/YOUR-API-KEY/tinymce/7/tinymce.min.js"
Replace YOUR-API-KEY with your actual TinyMCE API key.
Side effects
Cache Warmer: The CopyCacheWarmer is aware of the cloud configuration and skips copying local assets when a cloud URL is configured
Fallback to Bundled Version
If script_url is not configured or set to null, the bundle will automatically use the bundled TinyMCE version:
# config/packages/pimcore_tinymce.yaml
pimcore_tinymce:
script_url: null # Uses bundled version (default)