Customizing internal email-editor

Hi,

Could someone help me in the right direction regarding the internal email-editor (contacts->click an email->popup window for writing email). I would need to add some basic buttons for adding and editing html-links…

I found this in modules/Emails/include/ComposeView/EmailsComposeView.js

  $.fn.EmailsComposeView.defaults = {
    "tinyMceOptions": {
      skin_url: "themes/default/css",
      skin: "",
      plugins: "fullscreen",
      menubar: false,
      toolbar: ['fontselect | fontsizeselect | bold italic underline | styleselect'],
      formats: {
        bold: {inline: 'b'},
        italic: {inline: 'i'},
        underline: {inline: 'u'}
      },
      convert_urls:true,
      relative_urls:false,
      remove_script_host:false,
    }
  };

But changing anything in this does not seem to work… I did a rebuild and restarted apache…

Very odd… I got this now to work. I have no clue what magic i did inbetween… :thinking:

  $.fn.EmailsComposeView.defaults = {
    "tinyMceOptions": {
      skin_url: "themes/default/css",
      skin: "",
      plugins: "fullscreen,link,code",
      menubar: false,
      toolbar: ['fontselect | fontsizeselect | bold italic underline | styleselect',' link | unlink | undo | redo | copy | paste | code'],
      formats: {
        bold: {inline: 'b'},
        italic: {inline: 'i'},
        underline: {inline: 'u'}
      },
      convert_urls:true,
      relative_urls:false,
      remove_script_host:false,
    }
  };
1 Like