Unplanned
Last Updated: 22 Feb 2024 08:51 by ADMIN
When you have a single PlainTextControl in the document you can insert another content controls in it. 
Unplanned
Last Updated: 15 Jan 2024 13:46 by Abhinav
In Narrator scan mode RichTextBox is not accessible.
Unplanned
Last Updated: 21 Feb 2024 09:19 by Caesar
Pasting text with multiple paragraphs into a plain text content control is still possible when IsMultiline is set to false. 
Unplanned
Last Updated: 31 Oct 2018 08:11 by ADMIN
When comments panel is closed while the caret is still in the comment body, most document commands (all except typing) continue to execute in the comment body.

The bug is regression introduced in 2013 Q3.

Workaround: save the document position of the caret before showing the comment and after hiding the comments' panel, apply the saved caret position to the document. Attached is a sample project with the fix.
Unplanned
Last Updated: 31 Oct 2018 08:11 by ADMIN
When table cell text alignment (including horizontal and vertical alignment) is applied to a specific part of the table (e.g. First Row, First Column, etc.), the horizontal alignment is not applied. Only the vertical alignment is applied. If the alignment is applied to the whole table, then everything works as expected.
Unplanned
Last Updated: 31 Oct 2018 08:11 by ADMIN
When a table is copied (without a paragraph before it) and pasted as first element in a Section in RadRichTextBox with Track Changes enabled, accepting all changes throws (handled) InvalidCastException. Changes are not accepted.

Workaround: Attach to RadRichTextBox.CommandExecuting event, and add paragraph before the table in the document fragment in the clipboard.
private void RadRichTextBox_CommandExecuting(object sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is Telerik.Windows.Documents.RichTextBoxCommands.PasteCommand)
    {
        if (this.radRichTextBox.Document.IsTrackChangesEnabled)
        {
            DocumentFragment documentFromClipboard = ClipboardEx.GetDocument();
 
            if (documentFromClipboard != null)
            {
                e.Cancel = true;
 
                RadDocument documentFormClipboard = documentFromClipboard.ToDocument();
 
                if (documentFormClipboard.EnumerateChildrenOfType<Table>().Count() > 0)
                {
                    Section firstSection = documentFormClipboard.Sections.FirstOrDefault();
                    if (firstSection.EnumerateChildrenOfType<Table>().Count() > 0)
                    {
                        if (firstSection.EnumerateChildrenOfType<Table>().FirstOrDefault() != null)
                        {
                            Table table = firstSection.EnumerateChildrenOfType<Table>().FirstOrDefault();
                            Paragraph paragraph = new Paragraph() { SpacingAfter = 0, SpacingBefore = 0, LineSpacing = 0, FontSize = 1 };
                            firstSection.Blocks.AddBefore(table, paragraph);
 
                            RadDocumentEditor editor = new RadDocumentEditor(this.radRichTextBox.Document);
                            DocumentFragment fragment = new DocumentFragment(documentFormClipboard);
                            editor.InsertFragment(fragment);
                        }
                    }
                }
            }
        }
    }
}
Unplanned
Last Updated: 31 Oct 2018 08:11 by ADMIN
When a list item with applied first line indent is exported to PDF, the bullets are with wrong indent (images attached)

Partial workaround: Remove the first line indent and set it as left indent in order to preserve the visualization of the document
editor.ChangeParagraphLeftIndent(paragraph.FirstLineIndent + paragraph.LeftIndent);
editor.ChangeParagraphFirstLineIndent(0);
Unplanned
Last Updated: 28 Aug 2023 13:05 by Caesar
Incorrect list item sequence when adding new items to existing list. 
Unplanned
Last Updated: 29 May 2023 04:42 by Swapnil
Editing after selecting the end of the line removes the line break. In Word, the line break (paragraph) is preserved. 
Unplanned
Last Updated: 06 Jun 2023 06:03 by Deltaohm
Exporting field with code ending with curly bracket trims it.
Unplanned
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);
    }
}
Unplanned
Last Updated: 25 Aug 2023 09:37 by Vladimir
Annotation markers can be left after deleting when annotation start and annotation end are in different selection ranges. 
Unplanned
Last Updated: 31 Jan 2024 14:43 by Stenly
Clicking at the end of the line does not select the last word of the line, but selects the first word of the next line.
Unplanned
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();
Unplanned
Last Updated: 13 May 2022 13:09 by ADMIN
RichTextBox: Exporting hyperlinks that include symbols such as a Section sign (§) to a PDF file breaks the link
Unplanned
Last Updated: 27 Dec 2022 12:46 by Caesar
When there is Plain Text Content Control in a table and the table is deleted from the context menu and then the operation is undone, then the Properties dialog for the Plain Text Content Control cannot be displayed.
Unplanned
Last Updated: 03 Apr 2024 13:15 by ADMIN

If FontSize is not explicitly set in the style, the value displayed in the StyleFormattingPropertiesDialog is 16, which is from the const DocumentDefaultSettings.DEFAULT_FONT_SIZE.

But when rendering document, the actural font size is from the   StyleDefinition "defaultDocumentStyle".

So if the FontSize in the  StyleDefinition "defaultDocumentStyle" is set to a value other than 16 (I set it to a value of 12 in the attached document), the FontSize displayed in the StyleFormattingPropertiesDialog is incorrect.

Unplanned
Last Updated: 11 Mar 2024 14:07 by ADMIN
After switching to a different program and then back, this window is not at the top
Unplanned
Last Updated: 06 Apr 2023 09:30 by kim
Created by: kim
Comments: 0
Category: RichTextBox
Type: Bug Report
0

Korean language input does not work correctly on Windows 11 versions after 22H2 (OS Build 22621.1265).

This is related to an update to the Microsoft Input Method Editor (IME). The workaround is to enable the "Previous version of Microsoft IME" (check the attached screenshots for the steps).

Unplanned
Last Updated: 17 Aug 2022 10:00 by Ryan
The Mentions popup is not shown when the cursor is in the last line and the line is at the down edge of the control. Gif is attached.