<telerikRichTextEditor:RadRichTextEditor Grid.Row="1" Unfocused="RadRichTextEditor_Unfocused"/>
private void RadRichTextEditor_Unfocused(object sender, FocusEventArgs e)
If RichTextEditor has a source like this:
var htmlSource = @"<table style='background-color:red;border: 3px solid black'>
<tr><td> test table</td></tr>
</table>";
the table is rendered, but doesn't have the styling applied.
<head>
<style>
p{
color:red;
}
</style>
</head>
<p style="color: red;">This is a paragraph</p>
Since the RichTexrSelection is now setable for the RichTextEditor control, if feels like necessary to provide the support for add/change specified content at specified position.
We can change the content programmatically in 2 conditions:
1. Insert plain text / html code at the cursor point, while there is nothing selected.
2.Replace the currently selected content with new plain text / html code while selection exists.
Just for reference, an Api as below would be ideal:
RichTextSelection.SetHtml(html code);
RichTextEditor.Selection.SetHtml(html code);
For example, if I want to insert some plain text at the beginning of the document just after the rich text file loaded, I can easly achieve by this:
richTextEditor.Selection = new RichTextSelection(0,0);
richTextEditor.Selection.Insert("stringOrHtmlCode");
I suppose there is an easy way to implement the feature by invoking some predefined javascript codea and wraping them as exposed methods or functions.
Hope the suggeation could be accepted.
Kind regards.
Have I found a bug with the RichTextEditor? It appears that if I apply a padding, it behaves like the margin. Take a look at the attached file. If I change the margin or padding, the result looks the same. If I set a margin of 5 and a padding of 5, it looks like a margin of 10.
Is this a bug with the control or have I misunderstood something?
Currently, when in edit mode only the correct hyperlinks ("a href" links) can be detected. Provide an option for Automatic link detection for URLs, Phone numbers, Calender support in read-only mode
Currently, the Canary Island is detected as it is an "a href" link, and the editor is in read-only mode. google.com is not detected as a link: