Current implementation of Text UI automation pattern doesn't support obtaining the attributes of the selection, e.g. bold, italic, etc. The API allows returning custom ITextRangeProvider where the behavior could be implemented , but this requires a lot of work. If this is built-in, the API will allow getting the attributes as follows: var automationPeer = (RadRichTextBoxAutomationPeer)FrameworkElementAutomationPeer.FromElement(this.radRichTextBox); TextPattern textPattern = (TextPattern)automationPeer.GetPattern(PatternInterface.Text); object isItalic = textPattern.GetSelection()[0].GetAttributeValue(TextPattern.IsItalicAttribute); if (isItalic == TextPattern.MixedAttributeValue) { // mixed } else { bool italic = (bool)isItalic; } Currently, AutomationElement.NotSupported is always returned.
These tags define deleted and inserted content to markup updates and modifications in a document. They can be used to export the revisions of a document when Track Changes is enabled.
In MS Word, there is an option to show gridlines over the pages of the document. Implement such an option in RadRichTextBox as well.
Workaround: The attached project offers a simple custom implementation.
List items with <li style="list-style-type:disc"> are not imported from HTML. The style works fine when it is added in the parent <ul> element. This behavior also breaks the copy/paste functionality when user copies bullet lists from a Google Document.
In Word and WordPad when hitting Ctrl+Down Arrow the cursor moves to the start of the next paragraph, until the last paragraph in the document where it moves to the end of the document. In Telerik editor it moves to the end of the paragraph. Steps to reproduce: - Load a document with multiple lines of text - Click near the top of the document and hit Ctrl+Down repeatedly Expected: The cursor moves down one paragraph at a time with the cursor at the start of the paragraph Actual: The cursor moves down one paragraph at a time with the cursor at the end of the paragraph Fix available in LIB Version 2017.3.1218.
Currently, blockquote tags are imported as paragraphs. Change the mechanism so they can be imported as citations.
This causes some problems if the hyperlink is edited and the document is exported and imported again.
Workaround:
private void RadRichTextBox1_DocumentChanged(object sender, EventArgs e)
{
var document = radRichTextEditor1.Document;
var fields = document.EnumerateChildrenOfType<FieldRangeStart>();
foreach (FieldRangeStart item in fields)
{
radRichTextEditor1.DeleteAnnotationRange(item);
}
}
Mail merge is not working for the first record in the items source when the items source is IEnumerable with deferred execution. Workaround: convert the collection to list.
In Word, default tab stops are not present in Paragraph's hanging indent. This leads to difference in the length of the Tab symbol in Word and RadRichTextBox, in cases when hanging is bigger than the default tab stop width.
There is already Author property but it is not filled automatically. It should be filled using the RequestCurrentUserInfo event of the RadDocument, which is currently only used for track changes revisions.
When there are several instances of RadRichTextBox in the same page/view, it would be nice if only one instance display any selection. In the same scenario, the color of the selection of TextBox, for example, changes. Clearing the selection on LostFocus would have been a solution, however control loses focus to the color pickers, comboboxes, etc. from the SelectionMiniToolBar and RadRichTextBoxRibbonUI.
When TextOptions.TextFormattingMode="Display" is set on RadRichTextBox, incorrect Measuring causes TextBlocks to not visualize correctly.
When a table is on a page different than the first one and user clicks on the thumb for resizing the table row height, wrong value is calculated and passed to the setter of the TableRow's Height property. This leads to wrong table layout when the document is exported using RtfFormatProvider.
When the user copy-pastes an image from Outlook, it is pasted as an IncludePictureField and visualized as expected. The field code looks like
{INCLUDEPICTURE :image001.png@01D15D16.4FAF0970 \* MERGEFORMATINET}
However, when the fields in the document are updated, the image is no longer shown because of its invalid Uri. In MS Word, when you paste the image, it is directly inserted as image and the field is skipped.
Workaround - remove the field start/ends (in the attachments)
Performance is slow when importing document containing many hyperlink fields from RTF and Docx formats.