You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/migration-from-7x.adoc
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ tinymce.init({
93
93
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:
94
94
95
95
. *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:
97
97
+
98
98
[tree]
99
99
----
@@ -143,7 +143,7 @@ export default function MyEditor() {
143
143
----
144
144
145
145
. *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:
147
147
+
148
148
[source, php]
149
149
----
@@ -161,7 +161,7 @@ tinymce.init({
161
161
====
162
162
* The license key manager is automatically included when using Tiny Cloud.
163
163
* 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.
165
165
* For bundled applications, ensure the license key manager is not excluded during build optimization.
166
166
====
167
167
@@ -403,15 +403,13 @@ When upgrading to {productname} 8, you will need to review and possibly update h
403
403
[source, javascript]
404
404
----
405
405
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
0 commit comments