Unplanned
Last Updated: 04 Oct 2016 08:04 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. 
Unplanned
Last Updated: 04 Oct 2016 08:03 by ADMIN
To reproduce:

1. Add a RichTextEditorRibbonBar on the form
2. Add a RadRichTextEditor on the form.
3. Set the RichTextEditorRibbonBar.AssociatedRichTextEditor property.
4. Run the application. You will notice that the caret for the RadRichTextEditor is displayed and the user expects to start entering text when pressing the keyboard. However,  the focused control in this case is the font family drop-down and it accepts the input. 

Workaround: focus the RadRichTextEditor in the Form.Shown event:

Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
    Me.RadRichTextEditor1.Focus()
End Sub
Unplanned
Last Updated: 04 Oct 2016 08:06 by ADMIN
To reproduce:
- Set the layout to Paged.
- Add a table
- Switch the layout to Flow and try to resize it on the right most border.

Workaround:
Switch to paged layout and resize the table.
Unplanned
Last Updated: 07 Jun 2016 06:17 by ADMIN
To reproduce:
1. Insert a table
2. Select all cells in it
3. Press the Backspace key => the table is removed but the table adorner is still visible

The adorner disappears if clicked
Unplanned
Last Updated: 06 Jun 2016 10:20 by ADMIN
To reproduce:
- Add some misspelled words.
- Enable the spell check - the layout is updated and the words are underlined.
- Disable the spell check - the lines are not removed until one clicks in the RichTextEditor.

Workaround:
 radRichTextEditor1.IsSpellCheckingEnabled = !radRichTextEditor1.IsSpellCheckingEnabled;
 radRichTextEditor1.Document.LayoutMode = DocumentLayoutMode.Paged;
 radRichTextEditor1.Document.LayoutMode = DocumentLayoutMode.Flow;

Unplanned
Last Updated: 25 May 2016 10:19 by ADMIN
Workaround:
string styleSuffix = "_1";
foreach (var importedStyle in rtfDoc.StyleRepository)
{
        importedStyle.Name = string.Concat(importedStyle.Name, styleSuffix);
}
Unplanned
Last Updated: 06 May 2016 13:17 by ADMIN
Workaround:
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        this.radRichTextEditor1.IsSpellCheckingEnabled = true;

        this.radRichTextEditor1.Insert("SOooome wrrrrong wooooooooords.");

        this.radRichTextEditor1.CommandExecuted += radRichTextEditor1_CommandExecuted;
    }

    bool shouldProcess = true;
    private void radRichTextEditor1_CommandExecuted(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutedEventArgs e)
    {
        if (e.Command is DeleteCommand)
        {
            if (shouldProcess)
            {
                shouldProcess = false;
                RichTextEditorInputBehavior behavior = this.radRichTextEditor1.InputHandler;
                behavior.ProcessKeyDown(new KeyEventArgs(Keys.Back));    
            }

            shouldProcess = true;
        }
    }
}

Unplanned
Last Updated: 06 Jan 2017 11:16 by ADMIN
Local properties are not exported to HTML when style is applied over document element (paragraphs, spans, tables) in case the HtmlExportSettings.StyleExportMode is set to Inline.

To reproduce:
- Add two hyperlinks with differents font and font weights.
- Export them with the following code:
private void button1_Click(object sender, EventArgs e)
{
    HtmlFormatProvider html_provider = default(HtmlFormatProvider);
    string htmlBody = null;
    html_provider = new HtmlFormatProvider();
    html_provider.ExportSettings.StylesExportMode = StylesExportMode.Inline;
    html_provider.ExportSettings.StyleRepositoryExportMode = StyleRepositoryExportMode.ExportStylesAsCssClasses;
    htmlBody = html_provider.Export(radRichTextEditor1.Document);
    File.WriteAllText("test.html", htmlBody);
}
- Open the file and you will notice that the custom styles are not exported (the links are having the same style).

Workaround: 
html_provider.ExportSettings.StylesExportMode = StylesExportMode.Classes;
Unplanned
Last Updated: 30 Mar 2016 12:59 by ADMIN
Unplanned
Last Updated: 08 Jun 2022 08:28 by Prashant
CopyPropertiesFromOverride() method of InlineUIContainer is called more than once for every Copy/Paste command.
Unplanned
Last Updated: 13 Dec 2016 15:02 by ADMIN
If there is sequence with more than one font info which is not declared in a separate group, they all are concatenated and recorded in the imported fonts as a single one with id from the last one. Here is such a problematic font table group:

{\\fonttbl\\f0\\froman\\fcharset0 Times New Roman;\\f1\\froman\\fcharset0 Times New Roman;\\f2\\froman\\fcharset0 Times New Roman;\\f3\\froman\\fcharset0 Times New Roman;\\f4\\froman\\fcharset0 Times New Roman;\\f5\\froman\\fcharset0 Times New Roman;}
Unplanned
Last Updated: 26 Apr 2016 15:13 by ADMIN
To reproduce:
- Insert the following HTML vide the HtmlFormatProvider: "<!DOCTYPE html><html><head><title>test</title> <body><span >Hello,</span><p ><span >Kind regards,</span></p> <br /> <span >Test</span><p><a href=\"#\"><span>Hyperlink</span></a><span ><br /></span><span >test: 0</span><span ><br /></span><span>Test</span><span  </span></p></body></html>"

- Start the application place the caret in front of the link and press the tab key, you will notice that the text below the link is also moved.

This behavior is also observed when the text box contains plain text or a imported rtf, just move the caret at the top left corner, in front of all text and press Tab. 
Unplanned
Last Updated: 31 Mar 2016 09:43 by Jesse Dyck
Unplanned
Last Updated: 30 Mar 2016 12:56 by ADMIN
How to reproduce:
public Form1()
        {
            InitializeComponent();

            richTextEditorRibbonBar1.AssociatedRichTextEditor = radRichTextEditor1;
            radRichTextEditor1.Insert("This is a example for the \"ContextMenu shows up even when disabled\" error. If you right click on a word nothing happens (just as it is supposed to be) now klick \"Find Next Error\" and there it is (not supposed to be)\n\nlkjds klsdjfio jlk sdjfi lsdifuioew rlsoidf  sjdiuf oipds jifpodsuf ");

            radRichTextEditor1.IsContextMenuEnabled = false;
        }

        private void dropdown_PopupOpening(object sender, CancelEventArgs args)
        {
            args.Cancel = true;
        }

Workaround: 
public Form1()
        {
            InitializeComponent();

            richTextEditorRibbonBar1.AssociatedRichTextEditor = radRichTextEditor1;
            radRichTextEditor1.Insert("This is a example for the \"ContextMenu shows up even when disabled\" error. If you right click on a word nothing happens (just as it is supposed to be) now klick \"Find Next Error\" and there it is (not supposed to be)\n\nlkjds klsdjfio jlk sdjfi lsdifuioew rlsoidf  sjdiuf oipds jifpodsuf ");

            radRichTextEditor1.IsContextMenuEnabled = false; 

            FieldInfo fi = this.radRichTextEditor1.RichTextBoxElement.ContextMenu.GetType().GetField("radDropDownMenu", BindingFlags.Instance | BindingFlags.NonPublic);
            RadDropDownMenu dropdown = fi.GetValue(this.radRichTextEditor1.RichTextBoxElement.ContextMenu) as RadDropDownMenu;
            if (dropdown != null)
            {
                dropdown.PopupOpening += dropdown_PopupOpening;
            }
        }

        private void dropdown_PopupOpening(object sender, CancelEventArgs args)
        {
            args.Cancel = true;
        }
Unplanned
Last Updated: 05 Jun 2023 05:33 by ADMIN
Slow performance when importing documents with many hyperlink fields from RTF or Docx
Unplanned
Last Updated: 30 Mar 2016 11:13 by ADMIN
To reproduce:
- Import an html text snippet several times (the text should exceed one page)
- Select the entire text and bold it.
- Now make the text Italic
- You will notice that the text is not bold anymore.
 
Unplanned
Last Updated: 30 Mar 2016 12:25 by ADMIN
Workaround:
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        this.AdjustPaddings(0);
        this.AdjustPaddings(3);
    }

    private void AdjustPaddings(int index)
    {
        RibbonTab tab = ((RibbonTab)this.richTextEditorRibbonBar1.CommandTabs[0]);
        RadRibbonBarGroup group = (RadRibbonBarGroup)tab.Items[index];
        foreach (RadElement el in group.Items)
        {
            el.Padding = new Padding(3, 1, 3, 1);
        }
    }
}
Unplanned
Last Updated: 30 Mar 2016 11:16 by ADMIN
To reproduce:
- Create new application with a richtextbox in it.
- Build it and merge the assemblies.
- Start the application type some text then select a part of it and try to do something else.
- Note that this occur only the first time when the application is started.
Unplanned
Last Updated: 14 Apr 2023 08:14 by ADMIN
The CurrentEditingStyle is not updated correctly when changing the font of long text.
Unplanned
Last Updated: 30 Mar 2016 12:22 by ADMIN
To reproduce:
- Set the ParagraphDefaultSpacingAfter to 1.
- Start the application and add a comment directly.

The issue exist when there is many comments as well. The comment balloons should have minimum size and should not overlap eachother.

Workaorund:
void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is InsertCommentCommand)
    {
        int paragaphs = radRichTextEditor1.Document.Sections.First().Blocks.Count();

        if (paragaphs <= 1)
        {
            radRichTextEditor1.InsertLineBreak();
        }

    }
}