diff --git a/modules/ROOT/partials/configuration/uploadcare_resources.adoc b/modules/ROOT/partials/configuration/uploadcare_resources.adoc index ba2f0ffa97..d9e5adaaab 100644 --- a/modules/ROOT/partials/configuration/uploadcare_resources.adoc +++ b/modules/ROOT/partials/configuration/uploadcare_resources.adoc @@ -1,18 +1,11 @@ [[uploadcare-resources]] == `uploadcare_resources` -Specifies the base path where the Uploadcare plugin resources are served from. This option is primarily used when bundling {productname} with webpack or other bundlers, where the plugin needs to know where to load additional resources such as the `ucvideo.min.js` file for video functionality. - -When {productname} is bundled, the Uploadcare plugin cannot automatically determine where its additional resources are located. This option tells the plugin where to find these resources by specifying the root path to the Uploadcare plugin directory. +Specifies the base path where the Uploadcare plugin resources are loaded from. This allows you to specify a different location for the Uploadcare resources if they are hosted separately from the main {productname} installation. *Type:* `+String+` -*Default:* `+undefined+` - -*Possible values:* A string that points to the root path of the Uploadcare plugin directory. - -[NOTE] -This option is only required when using the **Media Optimizer** as a paid "addon" and bundling {productname} with webpack or similar bundling tools. +*Default:* `+''+` .Example: Setting `uploadcare_resources` [source,js] @@ -22,53 +15,19 @@ tinymce.init({ plugins: 'uploadcare', toolbar: 'uploadcare uploadcare-video', uploadcare_public_key: '', - uploadcare_resources: 'uploadcare/uploadcare', // Points to the uploadcare plugin directory + uploadcare_resources: 'path/to/uploadcare-resources/', license_key: '' }); ---- -=== Complete Bundled Setup Example - -For a complete example of setting up {productname} with the Uploadcare addon, see the bundled setup example: - -[source,html] ----- - - - - - - TinyMCE with Uploadcare Addon - - - - - - - - ----- - -=== Resource Structure +=== Resources Structure -When using `uploadcare_resources`, ensure your directory structure follows this pattern: +When using `uploadcare_resources`, ensure your directory structure follows this pattern, specifically the `js` and `css` subdirectories, and that the necessary resource files are present: .Example directory structure: [source,text] ---- project/ -├── uploadcare/ │ └── uploadcare/ │ ├── js/ │ │ └── ucvideo.min.js @@ -79,4 +38,4 @@ project/ └── tinymce.min.js ---- -The plugin will automatically append the necessary subpaths (e.g., `/js/ucvideo.min.js`) to the base path you specify. +NOTE: This option does not control the loading of the main Uploadcare plugin script, which should be included in the `+plugins+` or `+external_plugins+` configuration options as appropriate. \ No newline at end of file