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
The ScriptLoader now supports configurable crossorigin attributes, allowing better control over script loading behavior and CORS policies. This improvement is particularly important for {productname} Cloud deployments where browsers or security software (such as Norton Antivirus) might interfere with Referer headers.
269
+
When upgrading to {productname} 8, you will need to review and possibly update how your integration handles cross-origin resource loading. {productname} 8 provides a new configuration option for controlling the `crossorigin` attribute on loaded resources.
258
270
259
-
Configure the crossorigin attribute in two ways:
271
+
**What to check:**
260
272
273
+
. If you're using {cloudname}:
274
+
+
275
+
* Ensure your script tag includes both required attributes:
. If your application loads resources (scripts or stylesheets) from different domains:
283
+
+
284
+
* Configure the new crossorigin function in your `tinymce.init`:
285
+
+
267
286
[source, javascript]
268
287
----
269
-
// Method 2: Global configuration
270
288
tinymce.init({
271
289
selector: 'textarea',
272
-
crossorigin: 'anonymous'
290
+
crossorigin: (url, resourceType) => {
291
+
// Add crossorigin="anonymous" for cross-origin resources
292
+
if (url.startsWith('https://your-cdn.com')) {
293
+
return 'anonymous';
294
+
}
295
+
// Omit crossorigin attribute for same-origin resources
296
+
return '';
297
+
}
273
298
});
274
299
----
300
+
+
301
+
. If you're using content_css from a different domain:
275
302
276
-
**Impact**: This change improves security and compatibility with various hosting configurations, particularly ensuring consistent loading behavior for both the main {productname} script and plugins when using {productname} Cloud.
303
+
* The `content_css_cors` option takes precedence for stylesheets.
304
+
* Review your content_css configuration if you use cross-origin stylesheets.
277
305
278
-
**Migration steps:**
306
+
**Migration checklist:**
307
+
308
+
* [ ] Verify script tag attributes for Cloud deployments.
309
+
* [ ] Configure crossorigin function if using cross-origin resources.
310
+
* [ ] Test resource loading in your deployment environment.
311
+
* [ ] Review content_css configuration if using cross-origin stylesheets.
279
312
280
-
* Review your script loading configurations and update as needed
281
-
* Add appropriate crossorigin attributes where required by your security policies
282
-
* For {productname} Cloud deployments, consider setting `crossorigin: 'anonymous'` to prevent potential loading issues caused by security software
313
+
For complete details on the new crossorigin function API, see: xref:tinymce-and-cors.adoc#crossorigin[crossorigin configuration option].
283
314
284
315
==== Removed Empty Files
285
316
// #TINY-11287, #TINY-12084
@@ -291,10 +322,12 @@ Several empty files have been removed from the codebase to reduce clutter and im
291
322
292
323
**Impact**: These changes have no functional impact but may affect custom build processes that explicitly reference these files.
293
324
294
-
**Migration steps:**
325
+
**Migration checklist:**
295
326
296
-
* Remove any direct references to these files from your build processes
297
-
* Update any custom CSS/LESS imports that included these files
327
+
* [ ] Check build processes for references to Comments plugin CSS
328
+
* [ ] Check build processes for references to Mentions plugin LESS
329
+
* [ ] Remove any imports of these empty files
330
+
* [ ] Test Comments and Mentions plugins after removal
298
331
299
332
=== Content Handling Updates
300
333
@@ -305,11 +338,12 @@ The handling of `<div>` elements during cut operations has been improved to prev
305
338
306
339
**Impact**: This change affects how div elements are handled during cut operations, particularly in complex document structures.
307
340
308
-
**Migration steps:**
341
+
**Migration checklist:**
309
342
310
-
* Test cut/paste operations in your specific use cases, especially with complex nested div structures
311
-
* Update any custom handling of div elements to align with the new behavior
312
-
* Review and update any custom cleanup functions that process div elements
* [ ] Verify content structure after cut operations
313
347
314
348
=== Service and Configuration Changes
315
349
@@ -440,6 +474,15 @@ tinymce.init({
440
474
441
475
For complete details on license key manager setup and troubleshooting, see xref:license-key.adoc##setting-up-the-commercial-license-key-manager[Setting up the Commercial License Key Manager].
442
476
477
+
**License Migration checklist:**
478
+
479
+
* [ ] Contact account manager for new {productname} {release-version} license key
480
+
* [ ] Choose appropriate license type for your deployment
0 commit comments