Skip to content

Commit

Permalink
MWEB-54 : Update TinyMCE : Add non breaking space option
Browse files Browse the repository at this point in the history
  • Loading branch information
boulch committed Aug 4, 2022
1 parent 326f28c commit 0da7d6c
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
1.0.8 (unreleased)
------------------

- Nothing changed yet.
- MWEB-54 : Update TinyMCE : Add non breaking space option
[boulch]


1.0.7 (2022-06-13)
Expand Down
2 changes: 1 addition & 1 deletion src/imio/smartweb/common/profiles/default/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<version>1009</version>
<version>1010</version>
<dependencies>
<dependency>profile-plone.restapi:default</dependency>
<dependency>profile-eea.facetednavigation:default</dependency>
Expand Down
5 changes: 5 additions & 0 deletions src/imio/smartweb/common/profiles/default/registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@
"title": "Edit",
"items": "undo redo | cut copy paste | searchreplace selectall"
},
"insert": {
"title": "Insert",
"items": "nonbreaking"
},
"view": {
"title": "View",
"items": "visualblocks preview fullscreen"
Expand Down Expand Up @@ -151,6 +155,7 @@
<element>autosave</element>
<element>fullscreen</element>
<element>lists</element>
<element>nonbreaking</element>
<element>paste</element>
<element>preview</element>
<element>searchreplace</element>
Expand Down
18 changes: 18 additions & 0 deletions src/imio/smartweb/common/upgrades/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="upgrade_1009_to_1010"
title="Upgrade common from 1009 to 1010"
directory="profiles/1009_to_1010"
description="Add non breaking space option to tiny (registry)"
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:upgradeStep
title="Configure first official release"
description="Run needed registry step"
Expand Down Expand Up @@ -114,4 +122,14 @@
/>
</genericsetup:upgradeSteps>

<genericsetup:upgradeSteps
source="1009"
destination="1010"
profile="imio.smartweb.common:default">
<genericsetup:upgradeDepends
title="Add non breaking space option to tiny (registry)"
import_profile="imio.smartweb.common.upgrades:upgrade_1009_to_1010"
/>
</genericsetup:upgradeSteps>

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<registry
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="imio.smartweb">
<record name="plone.plugins"
interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema">
<value purge="false">
<element>nonbreaking</element>
</value>
</record>

<record name="plone.menu"
interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema">
<value>
{
"edit": {
"title": "Edit",
"items": "undo redo | cut copy paste | searchreplace selectall"
},
"insert": {
"title": "Insert",
"items": "nonbreaking"
},
"view": {
"title": "View",
"items": "visualblocks preview fullscreen"
},
"table": {
"title": "Table",
"items": "inserttable deletetable | cell row column"
}
}
</value>
</record>

</registry>

0 comments on commit 0da7d6c

Please sign in to comment.