The theme color is with higher priority. Thus, when the document is exported to DOCX and opened again, the default color is applied to the style.
When the caret is positioned at the beginning of a paragraph with hanging indent and the user press Backspace, the left indent is set to a negative value, the text goes out of the bounds of the document. Workaround: Use the editor's method instead of the command: private void RadRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e) { bool? parameter = e.CommandParameter as bool?; if (parameter != null && parameter == true) { DeleteCommand command = e.Command as DeleteCommand; if (command != null) { e.Cancel = true; this.radRichTextBox.Delete(true); } } }
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.
Currently, an ArgumentException is thrown when trying to import an image with negative dimensions. In this scenario, we could import the document and skip the image, or read the size of the content.
NullReferenceException is thrown when trying to import a nested hyperlink, e.g. the following OOXML: <w:hyperlink r:id="rId4" w:history="1"> <w:hyperlink r:id="rId5" w:history="1"> <w:r> <w:rPr> <w:rStyle w:val="Hyperlink"/> <w:rFonts w:eastAsia="Times New Roman"/> </w:rPr> <w:t>google</w:t> </w:r> </w:hyperlink> </w:hyperlink>
The Object pool is keeping a references to RadTextBlock and RadRun.
Characters defined with their unicode codes in HTML won't be imported as symbols, but instead of their codes, for example: <span>料</span> <span>資</span> Some of these characters are often used, for example for umlauts (Ä, Ö, Ü) and CJK characters. The hexadecimal code for Zero Width Space character is split into two parts: <span>​</span> results in Ȁb;
Introduce the support for the border property (with type, size, color...) for a span elements. In OOXML, this looks like: <w:r> <w:rPr> <w:rFonts w:eastAsia="Times New Roman"/> <w:sz w:val="45"/> <w:szCs w:val="45"/> <w:bdr w:val="single" w:sz="12" w:space="0" w:color="000000" w:frame="1"/> </w:rPr> <w:t>Div with border for Telerik</w:t> </w:r> <w:r>
- When a floating image is inserted into header/footer the image is clipped. However, if Enter is pressed in the header/footer later, the whole image is shown. Further, if Enter is pressed again, the image is clipped again. - When floating images are placed in a header or footer, and are positioned outside of the text editor's area, they are not visualized. MS Word visualizes such images as slightly grayed out (similar to watermarks) in normal mode, and always visualizes them in Header/Footer edit mode.
Creating deep copy using CreateDeepCopy method of an empty Section (without paragraphs or with one empty paragraph) adds empty string Span which leads to ArgumentOutOfRangeException. Workaround: clear the empty string Spans before measuring: foreach (Span span in sectionClone.EnumerateChildrenOfType<Span>().ToList()) { if (string.IsNullOrEmpty(span.Text)) { ((Paragraph)span.Parent).Inlines.Remove(span); } } Steps to reproduce: 1. Execute the following code-snippet: RadDocument document = new RadDocument(); Section section = new Section(); section.Blocks.Add(new Paragraph()); document.Sections.Add(section); RadDocument documentClone = (RadDocument)document.CreateDeepCopy(); Section sectionClone = (Section)section.CreateDeepCopy(); documentClone.Sections.Clear(); documentClone.Sections.Add(sectionClone); documentClone.EnsureDocumentMeasuredAndArranged(); 2. Set the documentClone to a RadRichTextBox instance to visualize it. 3. Try to click in the document. Observe: ArgumentOutOfRangeException is thrown.
The fix will is available in our latest LIB release (v. 2015.03.1109).
Inserting DocumentFragment into RadDocument leads to loss of style definitions from the fragment which names are the same as some of the styles in the RadDocument's style repository. This causes loss of formatting of the text in the document fragment. For example if in the fragment there is a style with style name "Style_1" and in the RadDocument exists a style with the same name, that style will be omitted during the insertion of the fragment into the document. Workaround: Styles in the fragment could be renamed to avoid naming conflict with styles in the main document. For example, add the following code snippet right after the importing of the document and before the creation of the fragment: string styleSuffix = "_1"; foreach (var importedStyle in rtfDoc.StyleRepository) { importedStyle.Name = string.Concat(importedStyle.Name, styleSuffix); } This will automatically change the styles of all elements with the renamed styles.
Loading/editing document with large lists (with 1561 or more items) throws IndexOutOfRangeException when incorrectly tries to convert numbering to letters. Workaround: Change list type to one which does not include letter NumberingFormat in any of its levels, for example Numbered Hierarchical or custom one.
Localization strings for thumbs and tab stop tooltips are missing. Note: This item is merged with the one at http://feedback.telerik.com/Project/143/Feedback/Details/141977 . To track the status of the issue, please subscribe to the other feedback item.
When trying to export a document which contains hyperlink pasted from Outlook, KeyNotFoundException is thrown. The color of the span is not registered. To work around this, register a style with the same color: StyleDefinition style = new StyleDefinition("test", StyleType.Character); style.SpanProperties.ForeColor = Color.FromArgb(100, 200, 25, 104); this.radRichTextBox.Document.StyleRepository.Add(style);
Pressing Tab/Shift+Tab when caret position is at the beginning of a paragraph should change current paragraph FirstLineIndent instead of LeftIndent. First line indent should be changed with Document.DefaultTabWidth step. Workaround (using PreviewEditorKeyDown): in the attached file.
This scenario is not valid according to the HTML specification, but exception shouldn't be thrown. Steps to reproduce: - Try to import the following HTML: <html> <body> <p style="font-size = 9px">Simple Test</p> </body> </html> Observed: A NullReferenceException is thrown.
Provide the ability to enter custom values (not listed in the drop-down) in Font size combo box.
Binding errors from RadRibbonGallery in the TableStylesGallery are outputted in the Output window in Visual Studio, because of binding to the StyleDefinitions and CurrenSelectedStyle properties of the gallery's view model.