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


  • Kopano

    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.


Log in to reply
 

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.