Hi Chris,
Thanks for contacting Syncfusion forums.
Currently we do not provide support to remove the font names from
font combo box. However, you can set fonts other than TimesNewRoman by using
the following code snippet,
<code>
[Script]
//On load function
$find('RichTextEditor1').IFrame.ExecuteCommand(' fontName', 'Calibri');
</code>
Kindly try the above given solution and let us know if this helps.
Regards,
@Html.Syncfusion().RichTextEditor("description").ShowHtmlSource(false).Width(500)
given a <script> </script> tag, what should I put in there? I've tried:
$.find('#description').iframe but that is null...
Thanks
Chris
We regret for the
delay in getting back to you.
We have updated our
solution for this query in the incident #106477. Kindly refer the above
specified incident for better follow up.
Regards,
Varalakshmi
Hi Kerry,
Thanks for the update.
We suggest you to use the below given code to achieve the required functionality. The below given code will the Arial font face with size 2 for IFrame contents.
<code>
[script]
//function
var fontsize = $find('sample_FontSize_DropDown'); // here sample is controlid
var fontstyle = $find('sample_FontStyle_DropDown');
fontsize._textBox.value = 2; // fontsize for display purpose.
fontstyle._textBox.value = 'Arial'; // fontname for display purpose.
var rteobj = $find('sample_IFrame');
var str1 = rteobj.get_Text(); // getting the user text
var strhtml= '<div >'+'<font face="Arial" size="2">'+str1+'</font>'+'</div>'; // Div tag to pass the html source
rteobj.set_HtmlString(strhtml); // passing the Html element to RichTextEditor
</code>
Regards,
Varalakshmi