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.
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.
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); } } } };
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 importing a hyperlink containing anchor, the NavigateUri keeps the part after the hyperlink only instead of the whole URI.
Trying to delete table cell formatting symbol, when track changes are on, will result in marking the text in the cell as deleted. MS Word does not respect such delete action.
If there is a Span surrounded with annotation ranges in a table cell and the table has conditional table style, the text cannot be selected after import of such document. If the table has normal table style (not a conditional one) everything works as expected. - If the annotations are bookmark ranges (start and end), the text cannot be selected with double-click over the text. - If the text is hyperlink, the text could be selected with double-click, but when the selection is changed through the keyboard arrows, the same issue appears. The issue appears with Docx documents, in addition to the attached Xaml one, so the issue seems not to be related to the XAML serialization.
With the current implementation, when an image is selected, viewport is scrolled to the corresponding image document position: - In case of inline image, it moves to the end of the image, so that the image is fully visible. - In case of floating image, it moves to the position where image is anchored. The behavior of the MS Word (the view is not scrolled in such cases) is much more convenient.
Allow Span to be hidden when visualizing the document. For example, introduce a Span.IsHidden property. In MS Word, text is hidden using the Home -> Font -> Font -> Effects -> Hidden. In the RTF format, such text is preceded (marked) with a '\v' tag. In OOXML, the tag is <vanish/> Note: Hidden text is visualized with dotted underline when formatting symbols are shown. Hidden text is not exported to PDF.
Images with display: none could be made not-visible in the UI. The other elements could be skipped and not imported.
When header/footer (HeaderFooterPresenterBase) is rendered, the model which corresponds to it (HeaderFooterBase's Body property) is not updated. The result is updated only in the presenter. Thus, when exporting the document or when checking the elements in the model, the value of the inline (span's text) is not updated. Workaround: Update the fields in the headers/footers. RadDocumentEditor.UpdateAllFields() method can be used. Note that it works only for the main document and not its child documents, so different RadDocumentEditors should be created for each header/footer document.
If span formatting command (bold, italic, strikethrough) is applied to selection over multiple paragraphs, and tracked with tracked changes; and later this tracked change is rejected, NullReferenceException is thrown. The exception is handled so the visible result for the end user is that the UI stops updating and any subsequent changes are not visible.
Currently, when an option is chosen from the drop-downs in Page Layout -> Page Setup -> Size/Margin/Orientation/Columns, the command is executed, but the item corresponding to the current value is not selected. For example, if the caret is in a Section with A3 size, Size -> drop-down -> A3 should be selected.
The ChangeListStyleCommand has an event named ListStyleChangedChanged which is never raised.
Currently RadDocument contains a lot of built-in (latent) table styles, which are always shown in the TableStylesGallery. Introduce API allowing to hide some of them.
Introduce an option enabling only proportional resizing to be allowed in the ImageSelectionAdorner (side middle thumbs should be disabled). The option can be added in the RadRichTextBox's ImageSelectionAdornerSettings as it already contains CanRotate, CanDrag, CanResize. Note that Images could also support Lock aspect ratio property, which is different.