Skip to content

Commit a26208c

Browse files
committed
DOC-3147: Update migration guide to clarify license key manager directory and initialization steps.
1 parent 8fdb2b1 commit a26208c

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

modules/ROOT/pages/migration-from-7x.adoc

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ tinymce.init({
9393
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:
9494

9595
. *CDN/Static Hosting:*
96-
** Ensure the supplied `licensekeymanager` folder is in your TinyMCE plugins directory:
96+
** Ensure the supplied `licensekeymanager` folder is in your {productname} plugins directory:
9797
+
9898
[tree]
9999
----
@@ -143,7 +143,7 @@ export default function MyEditor() {
143143
----
144144

145145
. *PHP/Laravel:*
146-
** Ensure the license key manager is included when publishing TinyMCE assets:
146+
** Ensure the license key manager is included when publishing {productname} assets:
147147
+
148148
[source, php]
149149
----
@@ -161,7 +161,7 @@ tinymce.init({
161161
====
162162
* The license key manager is automatically included when using Tiny Cloud.
163163
* The plugin does not need to be added to the `plugins` configuration option.
164-
* For bundled applications, the license key manager must be loaded before TinyMCE initialization.
164+
* For bundled applications, the license key manager must be loaded before {productname} initialization.
165165
* For bundled applications, ensure the license key manager is not excluded during build optimization.
166166
====
167167

@@ -403,15 +403,13 @@ When upgrading to {productname} 8, you will need to review and possibly update h
403403
[source, javascript]
404404
----
405405
tinymce.init({
406-
selector: 'textarea',
407-
crossorigin: (url, resourceType) => {
408-
// Add crossorigin="anonymous" for cross-origin resources
409-
if (url.startsWith('https://your-cdn.com')) {
410-
return 'anonymous';
411-
}
412-
// Omit crossorigin attribute for same-origin resources
413-
return '';
414-
}
406+
selector: "textarea",
407+
crossorigin: (url, resourceType) => {
408+
// Returning 'anonymous' or 'use-credentials' here would explicitly set the attribute
409+
// return 'anonymous';
410+
// return 'use-credentials';
411+
return undefined; // Omit the 'crossorigin' attribute for all resources by returning undefined
412+
},
415413
});
416414
----
417415
+

0 commit comments

Comments
 (0)