Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy authored Dec 12, 2024
1 parent 6b7cf97 commit f8f2dd6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/classic-ui/tinymce-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ Once removed, the custom formats will no longer appear in the menu.

Since version 7.0, TinyMCE adds the attribute `sandbox=""` to make the `<iframe>` elements [sandboxed](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox) with all restrictions.

To customize this behavior there are two options which can be added to the `Other settings` JSON configuration in the `Advanced` tab of the TinyMCE controlpanel.
To customize this behavior, there are two options which you can add to the {guilabel}`Other settings` JSON configuration in the {guilabel}`Advanced` tab of the {guilabel}`TinyMCE` control panel.

If you want to deactivate sandboxing in general this is the JSON configuration:
If you want to deactivate sandboxing in general, use the following JSON configuration.

```JSON
{
"sandbox_iframes": false
}
```

You can also exclude certain URLs from beeing sandboxed. The option is:
You can also exclude certain URLs from being sandboxed as follows.

```JSON
{
Expand All @@ -165,4 +165,6 @@ You can also exclude certain URLs from beeing sandboxed. The option is:
}
```

See [this article](https://www.tiny.cloud/docs/tinymce/latest/content-filtering/#sandbox-iframes-exclusions) for TinyMCEs default settings.
```{seealso}
See [`sandbox_iframes_exclusions`](https://www.tiny.cloud/docs/tinymce/latest/content-filtering/#sandbox-iframes-exclusions) for TinyMCE's default settings.
```

0 comments on commit f8f2dd6

Please sign in to comment.