Skip to content

Instantly share code, notes, and snippets.

@datakurre
Last active July 6, 2017 15:24
Show Gist options
  • Save datakurre/3e38972c1ba4a71cf9a2a526271bdaa8 to your computer and use it in GitHub Desktop.
Save datakurre/3e38972c1ba4a71cf9a2a526271bdaa8 to your computer and use it in GitHub Desktop.
Enabling template plugin in Plone Mosaic
<?xml version="1.0"?>
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone">
<record name="plone.custom_plugins" interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema">
<value>
<element>template|++plone++static/components/tinymce-builded/js/tinymce/plugins/template/plugin</element>
</value>
</record>
<record name="plone.custom_buttons" interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema">
<value purge="false">
<element>template</element>
</value>
</record>
<record name="plone.templates" interface="Products.CMFPlone.interfaces.controlpanel.ITinyMCESchema">
<value>
[
{"title": "Some title 1", "description": "Some desc 1", "content": "My content"}
]
</value>
</record>
<records interface="plone.app.mosaic.interfaces.IFormat"
prefix="plone.app.mosaic.richtext_toolbar.template">
<value key="name">toolbar-template</value>
<value key="category">selection</value>
<value key="label">Add template</value>
<value key="action">template</value>
<value key="icon">false</value>
<value key="favorite">false</value>
<value key="weight">800</value>
</records>
<record name="plone.app.mosaic.widget_actions.plone_app_z3cform_widget_RichTextFieldWidget.actions">
<value purge="false">
<element>toolbar-template</element>
</value>
</record>
<record name="plone.app.mosaic.app_tiles.plone_app_standardtiles_html.available_actions">
<value purge="false">
<element>toolbar-template</element>
</value>
</record>
</registry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment