When using the "Replace" function or the API, the formatting of the replaced word is lost. Note: Using "Replace All" does not reset the formatting. Steps to reproduce: 1. Enter the text "The quick brown fox" in a document 2. Apply formatting to the word "brown" (eg, make it bold) 3. Perform a find/replace on the word brown (eg, replace with blue) using "replace", not "replace all" 4. The formatting of the word is reset (it's no longer bold)
Having two mention providers and using the second right after using the first one actually loads the source of the first provider.
- There should be a formatting symbol for the character - Pressing Ctrl+Shift+Space should insert the character (standard MS Word shortcut) - Import from docx should be implemented - The symbol should be treated as a separator between words when spell-checking
Focus events (GotFocus, LostFocus) are raised inconsistently for RadRichTextBox, due to the internal translation of the focus to the Caret. Scenarios: 1. Clicking inside the control, when the focus is already inside the control, triggers LostFocus, GotFocus, LostFocus, GotFocus events. 2. Switching internal editors (headers/footers) raises GotFocus and LostFocus. 3. If the control is inherited and OnGotFocus/OnLostFocus are overriden, they are never called (despite OnGotFocus one time in the beginning The behavior is problematic, as this events are useful for custom validation scenarios.
"http://" prefix is automatically added by the Insert Hyperlink Dialog when the provided URI is to local path or mapped drive, e.g. "Z:\temp". Workaround 1: Set HyperlinkPattern to something that matches file paths, e.g.: (this.radRichTextBox.InsertHyperlinkDialog as RadInsertHyperlinkDialog).HyperlinkPattern = ".*"; Workaround 2: Insert such paths with the "file://" prefix.
The hyperlinks are not exported properly to DOCX, RTF and HTML format if the HTTP:// prefix is not added in the address when they were created. Steps to reproduce: 1. Open RadRichTextBox and click on Insert tab -> Hyperlink 2. In address field type: www.telerik.com 3. Export the file to DOCX, RTF or HTML format 4. Open the exported file and click on the hyperlink Observed result: The hyperlink is pointing to a local resource instead of opening the URL. As a workaround, the regex used to match a partial hyperlink could be further extended. If this regex succeeds in matching a partial hyperlink the HTTP:// prefix will be automatically added to the partial hyperlink. Here is example of how the regex should be accessed: (this.radRichTextBox.InsertHyperlinkDialog as RadInsertHyperlinkDialog).HyperlinkPattern
Exception when importing a document with an empty table.
Workaround: Remove the empty tables:
DocxFormatProvider provider = new DocxFormatProvider();
var doc = provider.Import(File.ReadAllBytes(@"C:\Users\mpc\Downloads\22-51.docx"));
foreach (var section in doc.Sections)
{
var tables = section.EnumerateChildrenOfType<Table>();
foreach (var table in tables.ToList())
{
if (table.Rows.Count == 0)
{
section.Blocks.Remove(table);
}
}
}
radRichTextBox.Document = doc;
Hello,
In the attached example, applying character formatting to a selection that ends between two annotation ends and undoing the formatting action does not revert the annotations to the exact position as they were before the formatting was applied.
Applying formatting twice and undoing twice crashes the editor because the second undo command inserts unpaired annotations (as it operates on a document state different than the expected one).