This item is duplicated. Please follow the other item at http://feedback.telerik.com/Project/143/Feedback/Details/159291.
If the document contains lists with applied customs style, when trying to open the Manage Styles Dialog using the button in the ribbon, ArgumentNullException is thrown and handled internally, and the dialog is not opened. If the user clicks the button multiple times (the number of lists with custom styles), the dialog is opened. Steps to reproduce: 1. Create a custom list style. 2. Add some test text in the RadRichTextBox. 3. Apply the custom list style in two places in the document. 4. Click on the Change Styles button. Observed: Dialog is not opened. Expected: The dialog should open.
Importing HTML document with white spaces and new lines separating the HTML elements will lead to additional intervals between words.
NullReferenceException is thrown when deleting content. The delete action is executed over a selection. The selection starts from the middle of a paragraph and ends in a table. The paragraph should have a line break as a first element.
The width of the table cell is calculated wrongly when it is set in the CSS style and through attribute: <td style="WIDTH: 75%" width=450>First cell</td>. The Unit isn't reset while reading the attribute value as its unit is missing and it is interpreted as % because the previous value is in percent.
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).