Support Article

Require Calibri font in RTE in the correspondence rule

SA-43540

Summary



User is requesting for the use of Calibri font in Rich Text Editor(RTE) in Correspondence rule.

Error Messages



Not Applicable


Steps to Reproduce

  1. Configure a Correspondence rule.
  2. Observe that Calibri font is not available in the fonts provided in the RTE in the Correspondence rule.


Root Cause



Not Applicable

Resolution



To add new fonts to the RTE in Correspondence rule, add the following script in the UserWorkform rule:

<script>
window.customCKEditorFonts = "Helvetica, sans-serif;Calibri;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif;MS Mincho" + ";Segoe UI";
</script>


In the above script, the display values in the list and the output fonts are separated by slash and fonts are seperated by ";".

Note that window.customCKEditorFonts variable is used to override Config.font_names of CKEditor. So,all the fonts mentioned in the above script will be displayed in RTE.

Published September 19, 2017 - Updated October 8, 2020

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.