Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
Performing Undo of bolded selection when the selection includes two tables separated by a paragraph is nesting the tables which were siblings.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
When a conditional table style is applied to a table and the document is exported to RTF format, when the exported document is opened in MS Word, the FontWeight and ForeColor properties are not respected.

Examples:
If Grid Table 4 style from the gallery is applied and the document is exported and opened in MS Word, the FontWeight property is not respected and the text is not bolded.
If Grid Table 5 Dark style from the gallery is applied and the document is exported and opened in MS Word, the FontWeight and ForeColor properties are not respected.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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;
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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. 
Completed
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
When a table is dragged after a page break, and then Undo/Redo is performed for the drag operation NullReferenceException is thrown.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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. 
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
The issue is reproducible when the style of the paragraph with the revisions is changed for the second time.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
Importing HTML document with white spaces and new lines separating the HTML elements will lead to additional intervals between words.
Approved
Last Updated: 31 Oct 2018 08:14 by ADMIN
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.
Completed
Last Updated: 31 Oct 2018 08:13 by ADMIN
Words containing apostrophes are not recognized by the spell checker. Examples: 
- Some contracted forms , for example "they've"
- A lot of common French words, e.g. "Aujourd’hui", "qu’une", "n'est"

The issue could be observed for the single straight (') as well as for the smart (’) quote.

Workaround:
Add the all word parts to the dictionary, for example, to recognize "they've", both "they" and "ve" should be added to the dictionary.

Fix available in LIB Version 2017.3.1009.
Approved
Last Updated: 31 Oct 2018 08:13 by ADMIN
Importing HTML with "a:link" CSS style will be applied to the text in a bookmark. Here is example of such HTML:

<html>
  <head>
    <style type="text/css">
      a:link {
        text-decoration: underline;
      }
    </style>
  </head>
  <body>
    <a name="anchor">Anchor element</a>
  </body>
</html>

A possible workaround is to select the content between the bookmarks and apply different underline decoration. Here is example of how this could be done:

List<BookmarkRangeStart> bookmarks = document.EnumerateChildrenOfType<BookmarkRangeStart>().ToList();
foreach (var rangeStart in bookmarks)
{
    document.Selection.Clear();

    var start = new DocumentPosition(document);
    start.MoveToEndOfDocumentElement(rangeStart);

    var end = new DocumentPosition(document);
    end.MoveToEndOfDocumentElement(rangeStart.End);

    document.Selection.AddSelectionStart(start);
    document.Selection.AddSelectionEnd(end);

    RadDocumentEditor editor = new RadDocumentEditor(document);
    editor.ChangeUnderlineDecoration(UI.TextDecorations.DecorationProviders.UnderlineTypes.None);
}

document.Selection.Clear();
Completed
Last Updated: 31 Oct 2018 08:13 by Tomas
While typing in a document containing a table with nested table, and the table is moved to the next page because of the flow of the text, NullReferenceException is thrown. 

When such document is loaded in RadRichTextBox a NullReferenceException could be thrown depending of the exact document or the application will hangs (goes to infinite cycle during the document layout).

Available fix in LIB version 2017.1.410.
Approved
Last Updated: 31 Oct 2018 08:13 by ADMIN
When trying to export a document containing InlineUIContainer inside a read-only range, the XamlWriter.Save() method that is used in XamlFormatProvider.Serialize() throws StackOverflow exception.

Sample code to reproduce the exception:
InlineUIContainer container = new InlineUIContainer();
Button btn = new Button();
btn.Content = "Sample Button";
btn.Width = 70;
btn.Height = 30;
container.UiElement = btn;

ReadOnlyRangeStart start = new ReadOnlyRangeStart();
ReadOnlyRangeEnd end = new ReadOnlyRangeEnd();
end.PairWithStart(start);
this.rtb.InsertInline(container);
this.rtb.Document.Selection.SelectAll();
this.rtb.InsertAnnotationRange(start, end);

XamlFormatProvider provider = new XamlFormatProvider();

string content = provider.Export(this.rtb.Document);
File.WriteAllText(@"c:\temp\asd.xaml", content);
Approved
Last Updated: 31 Oct 2018 08:11 by ADMIN
For example, if the document has "Times New Roman" as a default font family, the "TableNormal" style doesn't have set that property and there is a Table element in the header - the value is not properly obtained ("Verdana" is applied, which is the default value for that Span property).
The problem is observed for all default span style properties.

Workaround: Change the table style by setting the necessary properties from the default style. For example for the font family:

object documentFontFamilyPropertyValue = this.radRichTextBox.Document.Style.GetPropertyValue(Span.FontFamilyProperty);
foreach (StyleDefinition tableStyle in this.radRichTextBox.Document.StyleRepository.Where(s => s.Type == StyleType.Table && s.BasedOn == null))
{
    StylePropertyBase styleProperty = tableStyle.GetProperty(Span.FontFamilyProperty);
    if (styleProperty.ValueSource == RadValueSource.Default)
    {
        tableStyle.SetPropertyValue(Span.FontFamilyProperty, documentFontFamilyPropertyValue);
    }
}