Completed
Last Updated: 01 Jun 2018 15:43 by Dimitar
Workaround: If possible set the layout mode to FlowNoWrap
this.radRichTextEditor1.Document.LayoutMode = Telerik.WinForms.Documents.Model.DocumentLayoutMode.FlowNoWrap;
Unplanned
Last Updated: 29 May 2018 12:29 by ADMIN
Currently unknown/unsupported elements are skipped, which potentially loses text content. Consider adding setting in HtmlImportOptions allowing the phrasing content (text) of these elements to be imported. 

Sample HTML:

<html>
<body>
<test-test>test-test</test-test>
<body/>
</html>


Browsers visualize it as "test-test", while RadRichTextBox doesn't import anything.

MS Word imports such elements as inline elements (just like spans).
Unplanned
Last Updated: 23 May 2018 14:59 by ADMIN
When there is a hyperlink enclosed in another annotation (e.g comment, bookmark, read-only range), and the user moves the caret position just before or just after the hyperlink, and starts typing there, the text is inserted with the style of the hyperlink (by default, blue with blue underline). Instead, the text should be inserted without such style.
Unplanned
Last Updated: 23 May 2018 14:35 by ADMIN
Applying negative LeftIndent or FirstLineIndent of a paragraph in web layout mode will visualize the paragraph to the left of RadRichTextBox boundaries.
Unplanned
Last Updated: 23 May 2018 14:28 by ADMIN
Unplanned
Last Updated: 22 May 2018 09:49 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: RichTextEditor
Type: Bug Report
1
To reproduce: run the project, load the document available in the project's folder and start clicking the words. You will notice that the cursor is shifted on the right. 

Workaround: don't enable the RightToLeft property.
Unplanned
Last Updated: 21 May 2018 13:09 by ADMIN
Completed
Last Updated: 03 May 2018 06:52 by Dimitar
Workaround: 
private void RadRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is SaveCommand)
    {
        DocumentPosition initial = this.radRichTextEditor1.Document.CaretPosition;
        DocumentPosition start = new DocumentPosition(initial);
        DocumentPosition end = new DocumentPosition(initial);

        var spans = this.radRichTextEditor1.Document.EnumerateChildrenOfType<Span>();
        foreach (var span in spans)
        {
            if (span.FontStyle != FontStyle.Regular)
            {
                continue;
            }

            start.MoveToInline(span);
            end.MoveToEndOfDocumentElement(span);

            this.radRichTextEditor1.Document.Selection.AddSelectionStart(start);
            this.radRichTextEditor1.Document.Selection.AddSelectionEnd(end);

            this.radRichTextEditor1.RichTextBoxElement.Commands.ChangeFontFamilyCommand.Execute("Calibri");
        }

        this.radRichTextEditor1.Document.CaretPosition.MoveToPosition(initial);
    }
}
Unplanned
Last Updated: 01 May 2018 10:45 by ADMIN
How to reproduce: create a table with 1px of the inner borders and 3px of the outer borders. The attached screenshots demonstrates the issue. A similar result can be also observed with other widths as well.
Unplanned
Last Updated: 27 Apr 2018 13:17 by ADMIN
When the content of an entire row is copied and the caret is inserted in the left most column of a row, then the content of each cell in that row should be overwritten with the contents in the clipboard when pasted.

When such content is pasted just after a table, new row is added and filled with values.

When such content is pasted in paragraph, new table is created.
Unplanned
Last Updated: 24 Apr 2018 07:33 by ADMIN
Workaround: Handle the CommandExecuted event and change the font family after executing the paste command:

private void RadRichTextEditor1_CommandExecuted(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutedEventArgs e)
{
    if (e.Command is PasteCommand)
    {
        foreach (var p in this.radRichTextEditor1.Document.EnumerateChildrenOfType<Paragraph>())
        {
            if (p.IsInList)
            {
                var list = this.radRichTextEditor1.Document.ListManager.GetDocumentListById(p.ListId);
                list.ActualStyle.Levels[0].FontFamily = new Telerik.WinControls.RichTextEditor.UI.FontFamily("Symbol");
            }
        }
    }
}
Unplanned
Last Updated: 17 Apr 2018 09:19 by ADMIN
When CJK text (Chinese, Korean, Japanes) is copied from WordPad and paste into RadRichTextBox text, the characters are imported incorrectly (as '?' and as different characters). The same applies if WordPad document containing CJK is imported from RTF. 

The problem is related to the specified \fcharset134 RTF tag, which is not properly interpreted.
Unplanned
Last Updated: 16 Apr 2018 13:11 by zhijun
Unplanned
Last Updated: 04 Apr 2018 07:55 by ADMIN
Please refer to the attached screenshots. A sample .docx file is attached. Just load it in RadRichTextEditor. 
Unplanned
Last Updated: 12 Mar 2018 15:51 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: RichTextEditor
Type: Bug Report
2
When you have more than one RadRichTextEditor controls on the form and you have selected text in both of theme, only the focused RadRichTextEditor should show the selection. 
Unplanned
Last Updated: 06 Mar 2018 15:05 by ADMIN
Workaround: 
private void RadRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (!(e.Command is PasteCommand))
    {
        return;
    }

    DocumentFragment res = ClipboardEx.GetDocumentFromClipboard("RadDocumentGUID");
    if (res == null)
    {
        foreach (ClipboardHandler settings in ClipboardEx.ClipboardHandlers)
        {
            res = ClipboardEx.GetDocumentFromClipboard(settings.ClipboardDataFormat, settings.ClipboardStringFilter);
        }
    }

    if (res == null)
    {
        e.Cancel = true;
        System.Drawing.Image bitmapSource = Clipboard.GetImage();
        if (bitmapSource == null)
        {
            return;
        }

        Telerik.WinForms.Documents.Layout.Padding sectionmargin = this.radRichTextEditor1.Document.CaretPosition.GetCurrentSectionBox().AssociatedSection.ActualPageMargin;

        double originalPixelWidth = bitmapSource.Width;
        double originalPixelHeight = bitmapSource.Height;

        if (originalPixelWidth == 0 || originalPixelHeight == 0)
        {
            originalPixelWidth = 10;
            originalPixelHeight = 10;
        }

        double width = originalPixelWidth;
        double height = originalPixelHeight;
        
        if (this.radRichTextEditor1.Document.LayoutMode == DocumentLayoutMode.Paged)
        {
            Section currentSection = this.radRichTextEditor1.Document.CaretPosition.GetCurrentSectionBox().AssociatedSection;
            Telerik.WinForms.Documents.Model.SizeF pageSize = (Telerik.WinForms.Documents.Model.SizeF)currentSection.GetType().GetProperty("ActualPageSize", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(currentSection);

            double maxWidth = pageSize.Width - (sectionmargin.Left + sectionmargin.Right);
            double maxHeight = pageSize.Height - (sectionmargin.Top + sectionmargin.Bottom);
            width = Math.Min(maxWidth, width);
            height = Math.Min(maxHeight, height);
        }
        
        double ratio = originalPixelWidth / originalPixelHeight;
        width = Math.Min(width, height * ratio);
        height = width / ratio;
        
        Telerik.WinControls.RichTextEditor.UI.Size size = new Telerik.WinControls.RichTextEditor.UI.Size(width, height);
        ImageInline imageInline = new ImageInline(new WriteableBitmap(bitmapSource));
        imageInline.Size = size;
        
        this.radRichTextEditor1.RichTextBoxElement.ActiveDocumentEditor.InsertInline(imageInline);
    }
}
Unplanned
Last Updated: 28 Feb 2018 12:56 by ADMIN
Unplanned
Last Updated: 22 Feb 2018 13:17 by ADMIN