You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
707 B
20 lines
707 B
[[sandbox-iframes-option]]
|
|
== `sandbox_iframes` option
|
|
|
|
This option controls whether the editor will add a `sandbox=""` attribute to all `<iframe>` elements. This will restrict the iframe’s embedded resource from performing potentially malicious actions including scripting, file downloads, browser popups, passing the same-origin policy, among others. Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox[MDN].
|
|
|
|
*Type:* `+Boolean+`
|
|
|
|
*Possible values:* `true`, `false`
|
|
|
|
*Default value:* `false`
|
|
|
|
=== Example: using `sandbox_iframes` option
|
|
|
|
[source,js]
|
|
----
|
|
tinymce.init({
|
|
selector: 'textarea', // change this value according to your html
|
|
sandbox_iframes: true
|
|
});
|
|
----
|