plone / plone.app.mosaic

Plone Mosaic main repository
https://pypi.python.org/pypi/plone.app.mosaic
GNU General Public License v2.0
35 stars 26 forks source link

Can not add undo and redo to tiny mce toolbar #351

Open krissik opened 7 years ago

krissik commented 7 years ago

I would like to add undo and redo button to tiny mce toolbar. Because of that I have that in my registry.xml:

  <record name="plone.app.mosaic.widget_actions.plone_app_z3cform_widget_RichTextFieldWidget.actions"
          field="actions" interface="plone.app.mosaic.interfaces.IWidgetAction">
    <field type="plone.registry.field.List">
      <title>Available actions for my html tile</title>
      <value_type type="plone.registry.field.TextLine" />
    </field>
    <value>
      <element>toolbar-undo</element>
      <element>toolbar-redo</element>
      <element>toolbar-bold</element>
      ...
    </value>
  </record>

The other buttons like bold are shown in toolbar but undo and redo do not appear. I think it is because the registry entry "plone.app.mosaic.tinymce_categories.actions" for the category of "toolbar-undo" and "toolbar-red" is overwritten with "code"

datakurre commented 7 years ago

That's a mistake. Code should be in its own category, not override undo/redo. But fix would require an upgrade step.

On 2. maaliskuuta 2017 klo 15.59 +0100, krissik notifications@github.com, wrote:

I would like to add undo and redo button to tiny mce toolbar. Because of that I have that in my registry.xml:

Available actions for my html tile toolbar-undo toolbar-redo toolbar-bold ...

The other buttons like bold are shown in toolbar but undo and redo do not appear. I think it is because the registry entry "plone.app.mosaic.tinymce_categories.actions" for the category of "toolbar-undo" and "toolbar-red" is overwritten with "code" (https://github.com/plone/plone.app.mosaic/blob/master/src/plone/app/mosaic/profiles/default/registry.xml#L310)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/plone/plone.app.mosaic/issues/351), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAJyv7CA-s-To3RUTqRZtr7nHmeYIp1Wks5rhtkzgaJpZM4MRF6H).