Skip to content

Commit

Permalink
Add a label and important admonition about Template plugin removal in…
Browse files Browse the repository at this point in the history
… TinyMCE 7.0
  • Loading branch information
stevepiercy committed Feb 25, 2025
1 parent fd97ddf commit a0779be
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/classic-ui/tinymce-customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ You can remove these formats through the TinyMCE control panel.
Once removed, the custom formats will no longer appear in the menu.



## Configure `<iframe>` sandboxing

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.
Expand Down Expand Up @@ -170,10 +169,17 @@ See [`sandbox_iframes_exclusions`](https://www.tiny.cloud/docs/tinymce/latest/co
```


(classic-ui-tinymce-customization-insert-preconfigured-html-blocks-label)=

## Insert preconfigured HTML blocks

You can add custom HTML blocks in TinyMCE.
You can insert them in your content using the TinyMCE insert template menu option.
You can insert them in your content using the TinyMCE {menuselection}`Insert Template` menu option using the [TinyMCE Template plugin](https://www.tiny.cloud/docs/tinymce/6/template/).

```{important}
The Template plugin has been completely removed from the TinyMCE 7.0 release used in Plone 6.1.
As an alternative solution, you can use the [Advanced Template Premium plugin](https://www.tiny.cloud/docs/tinymce/6/advanced-templates/).
```

This option is best for system administrators and developers who write their own add-ons to ease reproducibility.

Expand All @@ -198,3 +204,9 @@ The following example adds three HTML files, each of which contains its custom H
</record>
</registry>
```

```{tip}
The file {file}`profiles/default/registry.xml` can be split in several files in {file}
the directory `profiles/default/registry` with arbitrary names ending in `.xml`.
This makes it easier to maintain and reuse your registry files.
```

0 comments on commit a0779be

Please sign in to comment.