Skip to content

Commit

Permalink
Merge pull request #557 from plone/maurits-tinymce-templates-fix-readme
Browse files Browse the repository at this point in the history
Fix TinyMCE templates readme to work on Plone 6.
  • Loading branch information
MrTango authored Oct 30, 2023
2 parents f498198 + 127d8b2 commit 0b96d40
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ New features:

Bug fixes:

- *add item here*
- Fix TinyMCE templates readme to work on Plone 6.
[maurits]


6.3.0 (2023-06-19)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,24 @@ configure the templates within the TinyMCE controlpanel of your Plone site.
Activate TinyMCE Templates Plugin
---------------------------------

.. code-block::
Go to the Plugins and Toolbar tab.
Under "Editor plugins" locate the "template" plugin and enable it.

template|++plone++static/components/tinymce-builded/js/tinymce/plugins/template
In ``registry.xml`` in a ``GenericSetup`` profile you would do it like this:

.. code-block:: xml

<?xml version="1.0" encoding="utf-8"?>
<registry>
<records interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema"
prefix="plone"
>
<value key="plugins"
purge="false"
>
<element>template</element>
</value>
</registry>


Configure TinyMCE Templates
Expand All @@ -20,11 +35,13 @@ Configure TinyMCE Templates
[
{
"title": "List",
"description": "List of group items",
"url": "++theme++{{{ theme.normalized_name }}}/tinymce-templates/list.html"
},
{
"title": "Card Group",
"description": "Group of cards",
"url": "++theme++{{{ theme.normalized_name }}}/tinymce-templates/card-group.html"
},
}
]

2 changes: 1 addition & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -----------------------------------------------
# Pin Versions / Version Ranges if necessary.
setuptools==57.0.0
tox==4.3.5
tox==4.11.3
isort>=5
flake8==5.0.4
flake8-html==0.4.2
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[tox]

min_version = 4.11.0

envlist =
py38-lint
py39-lint
Expand Down

0 comments on commit 0b96d40

Please sign in to comment.