Instances of RadDocument are leaking in addition to other objects when the CreateDeepCopy method of a Section is called. The section contains one paragraph in its blocks and has one paragraph in the default header. Fix available in LIB Version 2017.3.1002.
Empty paragraph containing only a section break shouldn't be translated on the next page if there isn't enough space for it on the current page.
The issue is reproducible when the document contains a custom Paragraph style the ListId of which related to a custom ListStyle in the document.
In MS Word, Heading and the subsequent paragraphs could be collapsed using a small arrow next to the heading. This is not preserved in the model.
Line break has a specific property which should be taken into account only when there is a floating object which interrupts the line, e.g.: <w:br w:type="textWrapping" w:clear="all" />
Currently, StylesGallery and TableStylesGallery cannot be resized. Internally they contain RadRibbonGallery, which itself expose ViewPortWidth property controlling the width, so this just have to be exposed.
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.
Performance is slow when importing document containing many hyperlink fields from RTF and Docx formats.
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); } } } };
It would be more user-friendly if the currently edited word (the one containing the caret) is excluded from the real-time spell checking and, if incorrect, is not underlined until the caret leaves the word boundary. Otherwise currently edited word is marked as incorrect while its typing is still in progress. Changes in a word can immediately mark it as correct (i.e. to remove the red underline), but cannot mark it as incorrect - it's marked as incorrect only after the caret leaves the word.
If there are two words with two spaces between them, and between the spaces there is annotation with SkipPositionBefore = false (e.g. track changes revision annotation or comment), and current editing style is changed on the position between the spaces (i.e. Toggle Bold, for example, without selection present) the first word formatting is affected (e.g. it becomes bold). Steps to reproduce: Variant 1: - Insert two words with a single space between them (e.g. "text telerik") - Turn Track Changes On - Insert a space after the single space between the two words. (i.e. right before 'telerik') - Toggle Bold Observe: "text" gets bold. Expected: "text" doesn't get bold, just current editing style is changed. Variant 2: - Insert two words with a two spaces between them (e.g. "text telerik") - Select the second space and the second word, and insert comment. - Put the caret between the spaces. - Toggle Bold Observe: "text" gets bold. Expected: "text" doesn't get bold, just current editing style is changed.
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.
When editing header/footer in MS Word, the paragraph which is inserted there has defined tab stops. In RadRichTextBox there isn't and thus, when the tab is pressed, a default tab stop is inserted.
This functionality is not supported out-of-the-box. However, it could be implemented by the users as demonstrated in the Custom Code Formatting Language SDK example (https://github.com/telerik/xaml-sdk/tree/master/RichTextBox/CustomCodeFormattingLanguage).
Add support for lower-alpha and upper-alpha.
Words containing apostrophes are not recognized by the spell checker. Examples: - Some contracted forms , for example "they've" - A lot of common French words, e.g. "Aujourd’hui", "qu’une", "n'est" The issue could be observed for the single straight (') as well as for the smart (’) quote. Workaround: Add the all word parts to the dictionary, for example, to recognize "they've", both "they" and "ve" should be added to the dictionary. Fix available in LIB Version 2017.3.1009.
Importing HTML with "a:link" CSS style will be applied to the text in a bookmark. Here is example of such HTML: <html> <head> <style type="text/css"> a:link { text-decoration: underline; } </style> </head> <body> <a name="anchor">Anchor element</a> </body> </html> A possible workaround is to select the content between the bookmarks and apply different underline decoration. Here is example of how this could be done: List<BookmarkRangeStart> bookmarks = document.EnumerateChildrenOfType<BookmarkRangeStart>().ToList(); foreach (var rangeStart in bookmarks) { document.Selection.Clear(); var start = new DocumentPosition(document); start.MoveToEndOfDocumentElement(rangeStart); var end = new DocumentPosition(document); end.MoveToEndOfDocumentElement(rangeStart.End); document.Selection.AddSelectionStart(start); document.Selection.AddSelectionEnd(end); RadDocumentEditor editor = new RadDocumentEditor(document); editor.ChangeUnderlineDecoration(UI.TextDecorations.DecorationProviders.UnderlineTypes.None); } document.Selection.Clear();
When importing a hyperlink containing anchor, the NavigateUri keeps the part after the hyperlink only instead of the whole URI.
While typing in a document containing a table with nested table, and the table is moved to the next page because of the flow of the text, NullReferenceException is thrown. When such document is loaded in RadRichTextBox a NullReferenceException could be thrown depending of the exact document or the application will hangs (goes to infinite cycle during the document layout). Available fix in LIB version 2017.1.410.