added content_css_cors documentation
This commit is contained in:
@@ -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
|
||||
});
|
||||
```
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user