added content_css_cors documentation

This commit is contained in:
Mattias Wikstrom
2018-10-30 15:24:40 +01:00
parent 8c58ee2d85
commit 5571eac5a6
3 changed files with 22 additions and 0 deletions
+1
View File
@@ -96,6 +96,7 @@
- url: "#body_class"
- url: "#body_id"
- url: "#content_css"
- url: "#content_css_cors"
- url: "#content_style"
- url: "#inline_boundaries"
- url: "#inline_boundaries_selector"
@@ -0,0 +1,19 @@
## content_css_cors
When setting the `content_css_cors` setting to `true` the editor will add a `crossorigin="anonymous"` attribute to the link tags that the StyleSheetLoader uses when loading the `content_css`, allowing you to host the `content_css` on a different server than the editor itself.
**Type:** `Boolean`
**Default Value:** `false`
##### Example
```js
// File: http://domain.mine/mysite/index.html
tinyMCE.init({
selector: 'textarea', // change this value according to your HTML
content_css : 'http://www.somewhere.example/mycontent.css',
content_css_cors: true
});
```
+2
View File
@@ -11,6 +11,8 @@ description: Configure the appearance of content inside TinyMCe's editable area.
{% include configuration/content-css.md %}
{% include configuration/content-css-cors.md %}
{% include configuration/content-style.md %}
{% include configuration/inline-boundaries.md %}