We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Any way to add new fonts to RTE


Are there any way to include new fonts in RTE to the defaults?

I could not find any documentation for this.

Thanks for your helps.


1 Reply

SS Saranya Sivakumar Syncfusion Team April 30, 2015 12:20 PM UTC

Hi Erdem

Thanks for using Syncfusion products.

We would like to let you know that we can add new fonts by using the Custom Tool option in RTE control. But we cannot add or edit the default font options present in the RTE control. CustomTool is used to add any controls additionally in the RTE control. We have to create a list and assign it to the ToolsList API which is used to set the ToolsList in RTE as shown in the following code snippet.


@{List<String> toolsList = new List<string>() { "customTool" };


Your RTE content...</p>).ShowFooter(true).ToolsList(toolsList).Tools(tool => tool).CustomTool(custom =>


After setting ToolsList we have to add custom tool to the RTE as highlighted above. Then we have to render Dropdownlist in the create event of RTE control as shown below.


function onCreate() {

var ddl = $("#codeInsert");


var ddltarget = $('#selectCar')



targetID: "carsList",

width: "200px",

select: "select"




After rendering Dropdownlist in the RTE control we have to set the new fonts as the Dropdownlist items by appending the font face style tag with the RTE value as shown in the following code snippet.


var obj = $("#rteSample").data("ejRTE");

var content = obj.option("value");

obj.option("value", "<font face=Times Roman" + content + "</font>");


We have to set the font in the select event of the Dropdownlist control. For your convenience we have prepared the sample based on your requirement and it can be downloaded from the following location.


Also we are having an online documention for custom tool option and it can be found under the following link.


Please let us know if you have further concern.



Live Chat Icon For mobile
Up arrow icon