Adding New Font Family to email compose Tinymce Editor in sugar 10.x

Hi All,

My requirement is to adding new font family in email compose tinymce (html editor) field. I have followed the below community link and done the steps accordingly. Newly added font family is showing in PDF template tinymce editor but it is not showing in the Email compose html editor field.

https://community.sugarcrm.com/thread/27010

SugarCRM version - 10.x

Can any one please suggest how to achieve this.

Parents
  • The answer referenced in that thread addresses all the BWC implementations of TinyMCE - so that will cover you for PDF Manager, Email Templates etc.

    However, in sidecar, there is a newer version of TinyMCE (v4) in use (as well). I've not had to configure it yet, but I believe if you have a read of clients/base/fields/htmleditable_tinymce/htmleditable_tinymce.js, you'll see that its possible to provide your own config to it when it gets instantiated, and hence, get your own fonts in there. Sorry that I don't have a code snippet to help further!

Reply
  • The answer referenced in that thread addresses all the BWC implementations of TinyMCE - so that will cover you for PDF Manager, Email Templates etc.

    However, in sidecar, there is a newer version of TinyMCE (v4) in use (as well). I've not had to configure it yet, but I believe if you have a read of clients/base/fields/htmleditable_tinymce/htmleditable_tinymce.js, you'll see that its possible to provide your own config to it when it gets instantiated, and hence, get your own fonts in there. Sorry that I don't have a code snippet to help further!

Children
  • Hi Adam,

    Thanks for your reply.

    I have gone through the htmleditable_tinymce.js file in clients/base/fields/htmleditable_tinymce/ and there is a function called getTinyMCEConfig. I tried to override the few parameters in toolbar. The changes are applying in the UI but here the font family has not been assigned. Where as it is showing like 'fontselect' in the toolbar.

    As there is a script file for the config parameter, I have tried overriding the font families in that respective file (include/javascript/tinymce4/tinymce.min.js and include/javascript/tinymce4/tinymce.js). But the changes I have made in script file are not showing in the UI.

    Kindly please suggest.