This question is locked. New answers and comments are not allowed.
Hi
I have a RichTextBox on my page defined as follows
I then have a function :
This is then set using the following:
This is fine and works however the html being converted does not explicitly define the font family and size so my content is displayed using the Times New Roman size 12.
How can i set the default size and font family if not explicitly specified.
Thanks
Anthony
I have a RichTextBox on my page defined as follows
<telerik:RadRichTextBox x:Name="txtCurrentItem" FontSize="10" HorizontalContentAlignment="Center" IsReadOnly="True" Background="Transparent" IsSpellCheckingEnabled="False" FontFamily="/iNAV-BMS;component/Fonts/Fonts.zip#Bliss Regular"> <telerik:RadRichTextBox.Document> <telerik:RadDocument LayoutMode="Flow" PageViewMargin="0,0,0,0"> <telerik:Section PageMargin="0,0,0,0,"> </telerik:Section> </telerik:RadDocument> </telerik:RadRichTextBox.Document> </telerik:RadRichTextBox>I then have a function :
Public Function ImportToHTML(ByVal content As String) As RadDocument Dim provider As New HtmlFormatProvider Return provider.Import(content) End FunctionThis is then set using the following:
txtCurrentItem.Document = ImportToHTML(HttpUtility.HtmlDecode(NodeDetail.NodeContent))This is fine and works however the html being converted does not explicitly define the font family and size so my content is displayed using the Times New Roman size 12.
How can i set the default size and font family if not explicitly specified.
Thanks
Anthony

