This question is locked. New answers and comments are not allowed.
Hi
I'm working on radrichtext box and my application also allows the user to have basic html tags while entering the text..
For example:
This is for <b>testing</b>. //using radrichtextbox
<telerik:RadRichTextBox x:Name="BodyText" Grid.Row="1" HorizontalAlignment="Stretch" IsSpellCheckingEnabled="False"
AcceptsReturn="True" VerticalScrollBarVisibility="Auto" >
<telerik:RadRichTextBox.Resources>
<html:HtmlDataProvider x:Name="HtmlDataProvider" Html="{Binding Path=Body,Mode=TwoWay}" RichTextBox="{Binding ElementName=BodyText}" />
</telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>
I'm loading up the data from the above richtextbox into another radrichtextbox
And when I load up the text back into another radrichtextbox these tags should be parsed and the testing should be shown in bold.
The html text I'm getting is :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_1681A555 { font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
.s_71516F31 { font-family: 'Times New Roman';font-style: Normal;font-weight: bold;font-size: 16px;color: #000000; }
</style></head><body><p class="p_CC664AAA"><span class="s_1681A555">dfhgsfdh </span><span class="s_71516F31">test</span></p><p class="p_CC664AAA"><span class="s_1681A555"><p><b>This text is bold</b></p></span><span class="s_71516F31" /></p></body></html>
The radrichtextbox is replacing the <> </> the tags with some other symbols(highlighted in bold).. Thus radrichtextbox is not able to convert while loading back.
Can we do this with radrichtextbox?
I'm using HTML dataprovider.
I'm working on radrichtext box and my application also allows the user to have basic html tags while entering the text..
For example:
This is for <b>testing</b>. //using radrichtextbox
<telerik:RadRichTextBox x:Name="BodyText" Grid.Row="1" HorizontalAlignment="Stretch" IsSpellCheckingEnabled="False"
AcceptsReturn="True" VerticalScrollBarVisibility="Auto" >
<telerik:RadRichTextBox.Resources>
<html:HtmlDataProvider x:Name="HtmlDataProvider" Html="{Binding Path=Body,Mode=TwoWay}" RichTextBox="{Binding ElementName=BodyText}" />
</telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>
I'm loading up the data from the above richtextbox into another radrichtextbox
And when I load up the text back into another radrichtextbox these tags should be parsed and the testing should be shown in bold.
The html text I'm getting is :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_1681A555 { font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
.s_71516F31 { font-family: 'Times New Roman';font-style: Normal;font-weight: bold;font-size: 16px;color: #000000; }
</style></head><body><p class="p_CC664AAA"><span class="s_1681A555">dfhgsfdh </span><span class="s_71516F31">test</span></p><p class="p_CC664AAA"><span class="s_1681A555"><p><b>This text is bold</b></p></span><span class="s_71516F31" /></p></body></html>
The radrichtextbox is replacing the <> </> the tags with some other symbols(highlighted in bold).. Thus radrichtextbox is not able to convert while loading back.
Can we do this with radrichtextbox?
I'm using HTML dataprovider.