Skip to content

Commit c413908

Browse files
authored
Merge branch 'main' into mrtango-fix-addon-template-permissions-order-in-zcml
2 parents 2d799a4 + 36f775e commit c413908

File tree

7 files changed

+31
-7
lines changed

7 files changed

+31
-7
lines changed

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

2228
6.3.0 (2023-06-19)
2329
------------------

bobtemplates/plone/theme/theme/manifest.cfg.bob

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

bobtemplates/plone/theme/theme/rules.xml.bob

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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,

bobtemplates/plone/theme_barceloneta/src/+package.namespace+/+package.name+/theme/manifest.cfg.bob

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

bobtemplates/plone/theme_barceloneta/src/+package.namespace+/+package.name+/theme/rules.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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" />

bobtemplates/plone/theme_basic/src/+package.namespace+/+package.name+/theme/tinymce-templates/README.rst.bob

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,24 @@ configure the templates within the TinyMCE controlpanel of your Plone site.
77
Activate 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

1530
Configure 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

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tox]
2+
23
min_version = 4.11.0
34

45
envlist =

0 commit comments

Comments
 (0)