When there is applied a local font family, the font family of the theme should be set to none. Otherwise, the font family of the elements that have a local value will be changed. Workaround: Reset the theme font family after import: this.radRichTextBox.Document.Style.SpanProperties.ThemeFontFamily = Telerik.Windows.Documents.Model.Themes.ThemeFontsEnum.none;
This includes everything related to: - Navigation of the controls only with keyboard (Tab, Shift+Tab, arrows, Alt+<Letter>) - Correct Screen Reader pronunciation when entering into/navigating in the control, including RadRichTextBox itself.
When exporting to HTML, each two consequent spaces in a run are treated as . However, when a style is applied to one of the spaces, the span is split and the two spaces are not considered as a pair, therefore, the HtmlFormatProvider exports them as normal spaces. When the two spaces are the whole content of a paragraph, this paragraph is not visible when the HTML is visualized in a browser.
Currently list styles cannot be removed from the document model.
There is no command or API in the editor for deleting paragraph, but there is such for, for example, deleting table.
ArgumentOutOfRangeException is thrown when replacing all (Replace All button is clicked from the FindReplace dialog) occurrences of given text if the replace text is with smaller length than the searched text. For example if we have the following text written in the RadRichTextBox: "Some Text" and we want to replace all occurrences of "Some Tex" with "AA" (open find and replace dialog and click ReplaceAll button), the exception occurs Workaround: Change the FindReplaceDialog with a custom one (see how in this SDK demo - https://github.com/telerik/xaml-sdk/tree/master/RichTextBox/CustomFindReplaceDialog ). In the new custom dialog, buttonReplaceAll_Click event handler, change the initialization of the 'startFindPosition' variable to be in the body of the while loop. Available in LIB Version 20181.205.
When a table is the only content in a document and is copy/pasted, it is inserted in the copied table as nested. The issue is observed only when the table is the only content in the table. It is not observed when an empty paragraph is available before the table or any spacing is inserted after the table. To workaround the issue, the selected table could be deleted before pasting.
Stretching the text is done by modifying the Scale Property of the Character Spacing properties. In the Office Open XML specification, it is represented by the <w:w w:val="300"/> tag.
The commands that toggle different span styles (bold, italic, underline, strikethrough) stop working after using them several times on different ranges of cells. If a single cell is selected, the span could be properly changed. The issue is reproducible with 2013 Q1 version and newer. It is not observed with version 2012 Q1.
Currently, there is an SDK example (https://github.com/telerik/xaml-sdk/tree/master/RichTextBox/WindowsMetafileFormatImageDecoder) showing how to implement a custom decoder that can import WMF and EMF images. We could integrate this decoder in the source code and enable the users to import their documents that contain such type of images out-of-the-box. Available in R1 2017 Official Release Version.
When a custom style is applied to a table and the document is exported to DOCX or RTF format, after importing and deleting the custom style, some properties like font size and foreground are preserved.
After inserting page break or section break the visual position of the caret is wrong. It should be at the beginning of the paragraph instead of beginning of the page. It's observed for all type of breaks except a line break.
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 a document has some section properties like orientation or page size and the document is printed with virtual printer, the generated PDF does not preserve the section properties. For example, if the document has Landscape orientation set, in the generated PDF file, the page with Landscape orientation is visualized with Portrait orientation and the text is drawn vertically. If the document has some page size set, for example A5, in the generated PDF file, the page with size A5 is visualized as page with A4 page size.
Importing HTML document with white spaces and new lines separating the HTML elements will lead to additional intervals between words.
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.
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" />
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.
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).