Enable import/export of read only ranges (protected parts of the document) from/to Rtf documents.
When importing a hyperlink containing anchor, the NavigateUri keeps the part after the hyperlink only instead of the whole URI.
When a document is edited by more than one user with enabled Track Changes, there should be an option to show the changes of a certain or multiple users and hide the rest.
Adding a custom list could be done by using the AddCustomListStyle method of RadDocument. However, this operation will not be included in the Undo stack. Deleting the full chain of relationships between a list style and a document list is not possible.
If we have a paragraph containing single span which has set red foreground as a local value, applying 'Heading 1' style on that paragraph from the RadRichTextBox' Styles Gallery doesn't change the span's foreground to blue (which comes from the applied style), but preserves the red value. Workaround: To clear a given property, basing on some logic which determines if it should be cleared. For example: this.radRichTextBox.CommandExecuting += (s, e) => { if (e.Command is ChangeStyleNameCommand) { var style = this.radRichTextBox.Document.StyleRepository.GetValueOrNull(e.CommandParameter.ToString()); if (style.Type == Telerik.Windows.Documents.Model.Styles.StyleType.Paragraph) { Paragraph paragraph = this.radRichTextBox.Document.CaretPosition.GetCurrentParagraphBox().AssociatedParagraph; foreach (Span span in paragraph.EnumerateChildrenOfType<Span>()) { span.ClearValue(Span.ForeColorProperty); } } } };
The issue is reproducible when the style of the paragraph with the revisions is changed for the second time.
Rtf document cannot be imported when it has an empty table row which have row spanned cells only.
There are missing values for the localization strings in: RichTextBox: Unmerge Cells in the context menu RichTextBox: NoColor string in the color picker
The UI indicates that a strikethrough is applied, but it is not visible in the document. Workaround: Reorder the UI layers of RadRichTextBox so that the one responsible for drawing the strikethrough decoration is added in a higher position: protected override void BuildUILayersOverride(IUILayerContainer uiLayerContainer) { uiLayerContainer.UILayers.Remove(DefaultUILayers.StrikethroughDecoration); uiLayerContainer.UILayers.AddAfter(DefaultUILayers.UnderlineDecoration, new StrikethroughTextDecorationUILayer()); }
The case "margin: 0px" is imported only as margin-top. This results in spacing-after property of the paragraph to have an incorrect value. There is a possible workaround if you have control over the construction of the HTML. Change the "margin: 0px" to "margin: 0px 0px 0px 0px"
If an Rtf document is imported and then exported to a Docx file, every single paragraph has associated list when the document is opened in MS Word. Workaround: Before the document export, clear the ListId property: if (this.radRichTextBox.Document.Style.ParagraphProperties.ListId == -1) { var property = this.radRichTextBox.Document.Style.ParagraphProperties.GetStyleProperty(Paragraph.ListIdProperty); property.ClearValue(); }
This includes everything related to: - Navigation of the controls only with keyboard (Tab, Shift+Tab, arrows, Alt+<Letter>) - Correct Screen Reader pronunciation when entering into/navigating in the control, including RadRichTextBox itself.
Watermark is drawn for each page in the RadDocument. When the watermark is a larger image, an OutOfMemoryException might occur during export to PDF. The same applies for images in header/footer.
When a document is imported from HTML, we set locally to the span elements Times New Roman as a font family nevertheless it is not declared anywhere. The same applies for the font size as well - it is set to 12. Workaround: Clear the FontFamily property after import foreach (Span span in this.radRichTextBox.Document.EnumerateChildrenOfType<Span>()) { span.GetStyleProperty(Span.FontFamilyProperty).ClearValue(); span.GetStyleProperty(Span.FontSizeProperty).ClearValue(); }
When documents containing images (e.g. few JPEGs with size of 5 MB) are loaded, the memory usage of the process goes up pretty quickly and eventually OutOfMemoryException is thrown. This is not conventional memory leak, as managed types are not leaking. After some investigation, we believe that GC cannot collect some MemoryStream objects (used for the conversion of the image from Base64 to PNG) from the Large Object Heap fast enough, or LOH becomes fragmented. Available in LIB version: 2017.1.213
Improve the performance when a document is printed.
The caret of RadRichTextBox appears only when the text is selected. Once you try to reorder the letters within its content, it appears. The issue is caused when ScrollViewer control has different than the default style for the corresponding theme and there are set Padding and/or Margin properties. Workaround: the template of the Caret should be edited and Style="{x:Null}" should be set on the ScrollViewer which is defined inside the Caret control template.
Actually, when we go to image editor from the RadRichTextBox, we've got the original image's size but not the width and height in the document. When we need to format pictures of a document with equal size, we are using the document's size, not the picture's size. Thanks