When migrating to TinyMCE {release-version} with a commercial license, the license key manager addon is required for the editor to operate. The setup varies based on your deployment method:
. *CDN/Static Hosting:*
** Ensure the supplied `licensekeymanager` folder is in your TinyMCE plugins directory:
** Ensure the supplied `licensekeymanager` folder is in your {productname} plugins directory:
+
[tree]
----
@ -143,7 +143,7 @@ export default function MyEditor() {
----
. *PHP/Laravel:*
** Ensure the license key manager is included when publishing TinyMCE assets:
** Ensure the license key manager is included when publishing {productname} assets:
+
[source, php]
----
@ -161,7 +161,7 @@ tinymce.init({
====
* The license key manager is automatically included when using Tiny Cloud.
* The plugin does not need to be added to the `plugins` configuration option.
* For bundled applications, the license key manager must be loaded before TinyMCE initialization.
* For bundled applications, the license key manager must be loaded before {productname} initialization.
* For bundled applications, ensure the license key manager is not excluded during build optimization.
====
@ -403,15 +403,13 @@ When upgrading to {productname} 8, you will need to review and possibly update h
[source, javascript]
----
tinymce.init({
selector: 'textarea',
crossorigin: (url, resourceType) => {
// Add crossorigin="anonymous" for cross-origin resources
if (url.startsWith('https://your-cdn.com')) {
return 'anonymous';
}
// Omit crossorigin attribute for same-origin resources
return '';
}
selector: "textarea",
crossorigin: (url, resourceType) => {
// Returning 'anonymous' or 'use-credentials' here would explicitly set the attribute
// return 'anonymous';
// return 'use-credentials';
return undefined; // Omit the 'crossorigin' attribute for all resources by returning undefined