Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Button to change from HTML to plain text format

    Kopano WebApp
    2
    3
    1149
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • smhaller
      smhaller last edited by

      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

      1 Reply Last reply Reply Quote 0
      • marty
        marty Kopano (Inactive) last edited by

        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.

        https://documentation.kopano.io/deskapp_admin_manual
        http://documentation.kopano.io/webapp_smime_manual
        https://documentation.kopano.io/webapp_admin_manual

        1 Reply Last reply Reply Quote 0
        • marty
          marty Kopano (Inactive) last edited by

          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.

          https://documentation.kopano.io/deskapp_admin_manual
          http://documentation.kopano.io/webapp_smime_manual
          https://documentation.kopano.io/webapp_admin_manual

          1 Reply Last reply Reply Quote 1
          • First post
            Last post