Add support for importing of imaged defined with VML's v:imagedata inside v:image or v:shape. Currently such images are just skipped.
When a paragraph is styled in HTML format with line-height it should be with AtLeast line spacing type instead of Exact. The same thing happens when the line-height is specified as normal: style="line-height: normal;".
The invalid document can't be measured and IndexOutOfRangeException/NullReferenceException will be thrown.
Clicking on floating Image when the caret position is not in the viewport, changes the viewport and starts image dragging. Instead, the image should just be selected. Steps to reproduce: 1. Start with empty document 2. Insert image, make it floating (right-click on it, select Text Wrapping -> In Front Of Text) 3. Drag the image near the bottom of the document. 4. Scroll and, if needed, zoom to such a factor, so that the first paragraph is outside of the view port. 5. Select the image (keep in mind that the image shouldn't be selected - the position should be at some of the previous paragraphs) Observe: The image dragging adorner is visible and the viewport is changed. Expected: The behavior shall be the same as MS Word - the viewport shouldn't be changed, and the image should just be selected
Possible workaround is to change the document of RadRichTextBox.
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.
When trying to import a document containing bookmark and BookmarkRangeEnd is after the last paragraph, a StackOverflowException is thrown in IntervalNode while trying to rebuild the document cache. (RadDocumentChildrenCache.RebuildTree()). The same could be observed if the bookmark end is last in the header/footer, between table cells in the RadDocument body, or when all paragraphs after the bookmark range end are hidden (with vanish property). Workaround: Detect the problematic annotations and remove them: foreach (var rangeStart in document.EnumerateChildrenOfType<AnnotationRangeStart>()) { if (rangeStart.End == null || rangeStart.End.Parent == null || rangeStart.End.Parent.Parent == null) { //MessageBox.Show("This indicates a problem."); rangeStart.Parent.Children.Remove(rangeStart); } } Note: Until 2017 R2 SP1 release StackOverflowException is thrown, after this release an ArgumentException should be thrown.
Currently <big> and <small> tags are not supported and the text inside is not imported.
All Microsoft Office applications (Outlook, Exchange, Word, Excel) that can produce HTML are creating them with all of the CSS stylings commented with HTML comment, as follows: <style><!-- CSS --></style> This is a problem as RadRichTextBox's HTML parser does not import the CSS when it is commented like that. Workaround: Remove the HTML comment from the CSS style tag.
When a span or text is placed in <a> tag, but 'href' and 'name' attributes are missing, then the span/text is not imported from the HTML document. Workaround: preprocess the HTML and add the 'href' attribute to all <a> elements. Steps to reproduce: 1. Import the following HTML: <html> <body> <a target="_blank">Some text</a> </body> </html> Expected: The hyperlink "Some text" is imported in the document. Actual: The span "Some text" is not imported.
The TableStylesGallery keeps a reference to the document, which doesn't allow the GC to collect it. The issue is reproducible when the document is loaded in RadRichTextBox in the constructor of the window or in its Loaded event.
When ScaleFactor is set to less that (1,1), this causes the caret to disappear at specific positions in the document. These positions depend on the exact value of the scale factor. The focus is still in the editor and users can type. Note that if the scale factor changes, the positions where the caret is not visualized will change as well.
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.
Performance is slow when importing document containing many hyperlink fields from RTF and Docx formats.
Export the image rotation properties to HTML with the CSS transform property (https://developer.mozilla.org/en-US/docs/Web/CSS/transform ).
Section break formatting symbol is not positioned as in MS Word. For example, when section break is inserted in an empty document and the cursor is placed before the break, when Enter is pressed, the section break formatting symbol is moved to the next line. In MS Word, the section break is preserved on the same line with the paragraph symbol.
When the LevelText of the list style is empty, PdfFormatProvider throws an IndexOutOfRangeException while trying to draw the bullet. Workaround: Ensure that the LevelText of the ListItemStyle is not an empty string: foreach (ListStyle listStyle in this.radRichTextBox.Document.ListManager.GetAllListStyles()) { foreach (ListLevelStyle level in listStyle.Levels) { if (string.IsNullOrEmpty(level.LevelText)) { level.LevelText = " "; } } }
Each time the Styles Gallery becomes visible it triggers an update of each style which leads to increased CPU usage. Significant performance delay is not experienced as the update is executed in dispatcher and with delayed execution. However, a blink of the styles could be noticed.
The ImagesDeflaterCompressionLevel and ContentsDeflaterCompressionLevel in the PdfFormatProvider's export settings have 0 for default value instead of -1. Workaround: Change the settings's properties to -1 explicitly.