Inserting carriage returns in table cell until floating UI container is moved to another page causes a crash.
RadDocument.StreamFromUriResolving is not raised for the main document when InsertPictureField is included in header or footer.
Workaround is to enumerate the fields and update them separately. foreach (var field in this.radRichTextBox.Document.EnumerateChildrenOfType<FieldRangeStart>()) { this.radRichTextBox.UpdateField(field); }
When track changes are enabled, setting very large values for both the Top and Bottom values of Distance from text, causes an exception in ParagraphLayoutBox. Stack trace: {System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.Windows.Documents.Layout.ParagraphLayoutBox.ArrangeOverride(SizeF finalSize) at Telerik.Windows.Documents.Layout.LayoutElement.ArrangeCore(RectangleF finalRect) at Telerik.Windows.Documents.Layout.LayoutElement.Arrange(RectangleF finalRect) at Telerik.Windows.Documents.Layout.SectionLayoutBox.ArrangeOverride(SizeF finalSize) at Telerik.Windows.Documents.Layout.LayoutElement.ArrangeCore(RectangleF finalRect) at Telerik.Windows.Documents.Layout.LayoutElement.Arrange(RectangleF finalRect) at Telerik.Windows.Documents.Layout.DocumentLayoutBox.ArrangeOverride(SizeF finalSize) at Telerik.Windows.Documents.Layout.LayoutElement.ArrangeCore(RectangleF finalRect) at Telerik.Windows.Documents.Layout.LayoutElement.Arrange(RectangleF finalRect) at Telerik.Windows.Documents.Model.RadDocument.Arrange(RectangleF arrangeRect) at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)} Steps to reproduce: 1. Enable track changes 2. Insert an image 3. Open Floating Blocks Layout Dialog 4. Choose Top and Bottom 5. Set "Distance from text" for both Top and Bottom to 2000px and click OK Result: Exception is thrown Additional info: Problem is also reproduced with very large images (1000 x 800 px) and small values for Distance from text.
Tab stops with visible tab leader (dot, hyphen, underscore) are not exported to PDF. Steps to reproduce: - Start with empty document - In Paragraph Properties dialog, choose Tabs - In Tab dialog, enter Tab stop position = 2, Leader = underscore, and press Set. Press OK - Add a word, press Tab, add another word - Export the text to PDF Expected: the words are separated with underscores in the exported PDF. Actual: the words are separated with blank space in the exported PDF.
The caret (cursor) is drawn over letters. This is unpleasant, especially with small font sizes. The issue is even more noticeable when the zoom factor is bigger than 100%. Available in LIB Version 2018.1.312.
There are missing values for the localization strings in: RichTextBox: Unmerge Cells in the context menu RichTextBox: NoColor string in the color picker
While clicking to position the caret at the beginning of a paragraph, the caret is jumping to the previous document position and returning back to the desired one. Fix available in LIB Version 2017.2.627.
If content with DocumentLists and ListStyles respectively, is copied from Microsoft Word and then pasted in RadRichTextBox, ArgumentNullException is thrown while the lists from the DocumentFragment are fixed (FixListStyles() method). The exception is caught and thus, the content from the clipboard is not inserted during the copy/paste operation. In some cases, when the content is pasted again, the content is pasted. Workaround: Replace the fragment in the clipboard with one that is already "fixed". See the attached MainWindow.cs.txt
NullReferenceException is thrown when measuring a document with floating image as the first element on a second page. The same problem can be observed during copy/paste of content, but with slightly different call stack: System.NullReferenceException: Object reference not set to an instance of an object. at Telerik.Windows.Documents.Layout.LayoutBox.get_ValidParent() at Telerik.Windows.Documents.DocumentPosition.GetCurrentParagraphBox() at Telerik.Windows.Controls.RichTextBoxUI.RadRichTextBoxRulerController.GetCurrentParagraphBox() at Telerik.Windows.Controls.RichTextBoxUI.RadRichTextBoxRulerController.AssociatedRichTextBox_LayoutUpdated(Object sender, EventArgs e) Depending on the document structure, an InvalidOperationException with message "Removed LayoutBox should not be split. Such operation will result in invalid document structure." could be also thrown. A sample call stack is: Telerik.Windows.Documents.Layout.LayoutBox.CreateNewFragment(Telerik.Windows.Documents.Layout.LayoutBox currentLineStartNode) Telerik.Windows.Documents.Layout.TableCellLayoutBox.MeasureOverrideInternal(Telerik.Windows.Documents.Model.SizeF availableSize) Telerik.Windows.Documents.Layout.TableCellLayoutBox.Telerik.Windows.Documents.Model.IBlockContainerLayoutBox.CallMeasureOverrideInternal(Telerik.Windows.Documents.Model.SizeF availableSize) Telerik.Windows.Documents.Layout.BlockContainerLayoutHelper.CheckAllFloatingBlocksAreIncluded(Telerik.Windows.Documents.Model.SizeF availableSize) Fix available in LIB Version 2018.1.312.
If you highlight a section of text and apply styles to it like bold/italic/underline and place your cursor at the end of that text the Clear All Formatting button does not work. If you turn on those styles and then type some text and place your cursor at the end of that text it does work. The difference in the XAML is that in the first case the styles are only on the span of text itself while in the second the styles are on the span and the paragraph. I have attached a GIF of steps to reproduce and the XAML from the editor before clicking the Clear All Formatting button.
When document with large images (the original image cannot fit on the page without resizing) are exported to PDF, the PDF document is visualized distorted by Adobe Reader. The issue is regression, introduced in 2017 R1 SP1. Workarounds: - Use images that can fit on the page. - Zoom RadRichTextBox to scale which allows the large images to fit fully on the page. The fix is available in LIB Version 2017.2.627.
The hyperlinks are not exported properly to DOCX, RTF and HTML format if the HTTP:// prefix is not added in the address when they were created. Steps to reproduce: 1. Open RadRichTextBox and click on Insert tab -> Hyperlink 2. In address field type: www.telerik.com 3. Export the file to DOCX, RTF or HTML format 4. Open the exported file and click on the hyperlink Observed result: The hyperlink is pointing to a local resource instead of opening the URL. As a workaround, the regex used to match a partial hyperlink could be further extended. If this regex succeeds in matching a partial hyperlink the HTTP:// prefix will be automatically added to the partial hyperlink. Here is example of how the regex should be accessed: (this.radRichTextBox.InsertHyperlinkDialog as RadInsertHyperlinkDialog).HyperlinkPattern
Bullets of a list are exported with a character which is not proper for plain text. The indentation of the bullet is also not exported. As a workaround, the incorrect bullet character could be replaced with something more suitable. Here is an example: TxtFormatProvider textFormatProvider = new TxtFormatProvider(); exportedText = textFormatProvider.Export(this.radRichTextBox.Document); string newText = exportedText.Replace((char)61623, (char)8226);
The state of the button shows that the current paragraph is still in a list. The button state is updated after moving the caret using the mouse. Steps to reproduce: 1. Create a list 2. Enter some text in the first item 3. Hit enter twice Observed: The current paragraph is no longer part of a list but the list button remains active in the ribbon
If header/footer containing annotations is set to a document using RadDocumentEditor.ChangeSectionHeader or ChangeSectionFooter methods, the annotations in the body of the header/footer are not paired in the resulting document. When such document is exported to XAML, NullReferenceException is thrown in the ReindexAnnotationMarkers internal method. Workaround: - Do not use RadDocumentEditor to set the footer: //editor.ChangeSectionFooter(radDocument.Sections.First, HeaderFooterType.Default, new Footer { Body = footerRadDocument }); radDocument.Sections.First.Footers.Default.Body = footerRadDocument; - Manually "fix" the cloned footer body before the export: ((ISupportInitialize)radDocument.Sections.First.Footers.Default.Body).EndInit();
Pasting HTML content causes RichTextBox to insert a paragraph break, even if the copied content did not include the end of the paragraph. Steps to reproduce: 1. Copy the first few words in a paragraph from Internet Explorer 2. Paste into the middle of a sentence in the RichTextBox Expected: The content is pasted inline Observed: The content is inserted, but a paragraph break is inserted after the content
The parent of an already removed span cannot be found and a NullReferenceException is thrown while performing Undo. Also, multiple asserts are failing in Debug mode. The stack trace is: UnhandledException: Object reference not set to an instance of an object. UnhandledException: at Telerik.Windows.Documents.Layout.LayoutElement.SetParent(LayoutElement newParent) at Telerik.Windows.Documents.Layout.LayoutBox.EnsureParent() at Telerik.Windows.Documents.Layout.LayoutBox.get_Parent() at Telerik.Windows.Documents.Layout.LayoutBox.get_ValidParent() at Telerik.Windows.Documents.WordPositionHandler.GetParentHandler() at Telerik.Windows.Documents.DocumentPosition.GetCurrentSectionBox() at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.GetCurrentPage() at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.MeasureOverride(Size availableSize) at System.Windows.FrameworkElement.MeasureCore(Size availableSize)