Skip to content

Commit d156d51

Browse files
authored
Update modules/ROOT/partials/configuration/crossorigin.adoc
1 parent cf85af4 commit d156d51

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

modules/ROOT/partials/configuration/crossorigin.adoc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,5 @@ When loading {productname} from {cloudname}:
5353
* For stylesheet resources, the `+content_css_cors+` option takes precedence over the `+crossorigin+` function. See: xref:add-css-options.adoc#content_css_cors[content_css_cors] for details about cross-origin stylesheet loading.
5454
====
5555

56-
=== Setting a global crossorigin function
57-
58-
The crossorigin function can also be set globally using `+tinymce.overrideDefaults()+`:
59-
60-
[source,js]
61-
----
62-
tinymce.overrideDefaults({
63-
...tinymce.defaultOptions, // Preserve existing defaults
64-
crossorigin: (url, resourceType) => {
65-
// Returning 'anonymous' or 'use-credentials' here would explicitly set the attribute
66-
return 'anonymous';
67-
// return 'use-credentials';
68-
// return undefined; // Omit the 'crossorigin' attribute for all resources by returning undefined
69-
}
70-
});
71-
----
72-
73-
[IMPORTANT]
74-
====
75-
When using {cloudname}, preserving the existing defaults is required. Always include `+...tinymce.defaultOptions+` when using `+overrideDefaults+`.
76-
====
7756

7857
For more details on the crossorigin attribute, see: link:https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin[MDN Web Docs - HTML attribute: crossorigin].

0 commit comments

Comments
 (0)