Button to change from HTML to plain text format

Hi all

Is there an option available to activate a Button in the Email Editor which alows the User to change the Format? I know one can change it in the settings from HTML to plain text. But having an option in the Editor itself would really be a benefit.

Kind regards
Stefan

There is no such option, but it’s not that difficult to create. Perhaps a community dev would like to create a plugin for this.
You should register and Insertion Point in the new mail window (context.mail.mailcreatecontentpanel.toolbar.actions) and create a button there.

When the button is pressed you should switch editors. Example if you are using plain text:

var p = btn.findParentByType('zarafa.mailcreatepanel');
 p.editorField.setHtmlEditor(true);

Something like this might work.

Hi @smhaller,

This plugin might helps you: https://github.com/tsarbel/switcheditor
Keep in mind switching from html to plain text loses all your formatting.