File tree Expand file tree Collapse file tree 7 files changed +31
-7
lines changed
theme_barceloneta/src/+package.namespace+/+package.name+/theme
theme_basic/src/+package.namespace+/+package.name+/theme/tinymce-templates Expand file tree Collapse file tree 7 files changed +31
-7
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ Bug fixes:
1818- Fix permissions.zcml loaded too late
1919 [MrTango]
2020
21+ - Fix TinyMCE templates readme to work on Plone 6.
22+ [maurits]
23+
24+ - Use portal_url to root all CSS and rules file links
25+ [erral]
26+
2127
22286.3.0 (2023-06-19)
2329------------------
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ tinymce-content-css = ++theme++{{{ theme.normalized_name }}}/styles/theme.min.cs
1111# production-js = ++theme++{{{ theme.normalized_name }}}/js/theme.min.js
1212
1313[theme:parameters]
14- # portal_url = python: portal.absolute_url()
14+ portal_url = python: portal.absolute_url()
Original file line number Diff line number Diff line change 77
88
99 <!-- Include barceloneta's backend.xml for backend theming. -->
10- <xi : include href =" ++theme++barceloneta/backend.xml" ><xi : fallback /></xi : include >
10+ <xi : include href =" {$portal_url}/ ++theme++barceloneta/backend.xml" ><xi : fallback /></xi : include >
1111 <!--
1212 The backend.xml it self uses the following rules condition, to exclude the frontend
1313 If you want to include anything just for the backend, you can do the same,
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ tinymce-content-css = /++theme++{{{ theme.normalized_name }}}/styles/theme.min.c
1818#directory = template-overrides
1919
2020[theme:parameters]
21- # portal_url = python: portal.absolute_url()
21+ portal_url = python: portal.absolute_url()
Original file line number Diff line number Diff line change 55 xmlns : xsl =" http://www.w3.org/1999/XSL/Transform"
66 xmlns : xi =" http://www.w3.org/2001/XInclude" >
77
8- <!-- <xi:include href="++theme++barceloneta/grid-col-marker.xml"/> -->
8+ <!-- <xi:include href="{$portal_url}/ ++theme++barceloneta/grid-col-marker.xml"/> -->
99
1010 <theme href =" index.html" />
1111 <notheme css : if-not-content =" #visual-portal-wrapper" />
Original file line number Diff line number Diff line change @@ -7,9 +7,24 @@ configure the templates within the TinyMCE controlpanel of your Plone site.
77Activate TinyMCE Templates Plugin
88---------------------------------
99
10- .. code-block::
10+ Go to the Plugins and Toolbar tab.
11+ Under "Editor plugins" locate the "template" plugin and enable it.
1112
12- template|++plone++static/components/tinymce-builded/js/tinymce/plugins/template
13+ In ``registry.xml`` in a ``GenericSetup`` profile you would do it like this:
14+
15+ .. code-block:: xml
16+
17+ <?xml version="1.0" encoding="utf-8"?>
18+ <registry>
19+ <records interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema"
20+ prefix="plone"
21+ >
22+ <value key="plugins"
23+ purge="false"
24+ >
25+ <element>template</element>
26+ </value>
27+ </registry>
1328
1429
1530Configure TinyMCE Templates
@@ -20,11 +35,13 @@ Configure TinyMCE Templates
2035 [
2136 {
2237 "title": "List",
38+ "description": "List of group items",
2339 "url": "++theme++{{{ theme.normalized_name }}}/tinymce-templates/list.html"
2440 },
2541 {
2642 "title": "Card Group",
43+ "description": "Group of cards",
2744 "url": "++theme++{{{ theme.normalized_name }}}/tinymce-templates/card-group.html"
28- },
45+ }
2946 ]
3047
Original file line number Diff line number Diff line change 11[tox]
2+
23min_version = 4.11.0
34
45envlist =
You can’t perform that action at this time.
0 commit comments