Unplanned
Last Updated: 12 Oct 2020 14:07 by ADMIN

RadRichTextEditor renders the text with a little bigger characters spacing than RadRichTextBox and MS Word.

Note: this text spacing problem can be observed in other Telerik controls as well.

Unplanned
Last Updated: 05 Apr 2017 14:36 by ADMIN
How to reproduce:
1. Run the Mail Merge example (QSF) 

2. Select the image inside the document and move it to another position
Unplanned
Last Updated: 26 Dec 2022 10:29 by ADMIN

Use the code below.

1. Click the first button to insert a link.

2. Click inside the link to move the cursor.

3. Click the second button to insert the yellow rectangle

4. Click the third button to export the HTML content.

Actual result: StackOverflow exception occurs

        private void radButton1_Click(object sender, EventArgs e)
        {
            HyperlinkInfo info = new HyperlinkInfo()
            {
                NavigateUri = "http://www.google.com",
                Target = HyperlinkTargets.Blank,
                IsAnchor = false
            };
            this.radRichTextEditor1.InsertHyperlink(info, "www.google.com");
        }

        private void radButton2_Click(object sender, EventArgs e)
        {
            LightVisualElement button = new LightVisualElement();
            button.Text = "My Button";
            button.DrawFill = true;
            button.BackColor = System.Drawing.Color.Yellow;
            button.GradientStyle = Telerik.WinControls.GradientStyles.Solid;

            Section section = new Section();
            Paragraph paragraph = new Paragraph();
            InlineUIContainer container = new InlineUIContainer();
            RadElementUIContainer radContainer = new RadElementUIContainer(button);
            container.UiElement = radContainer;
            container.Height = 25;
            container.Width = 70;
            paragraph.Inlines.Add(container);
            section.Blocks.Add(paragraph);
            RadDocument doc = new RadDocument();
            doc.Sections.Add(section);
            radRichTextEditor1.InsertFragment(new DocumentFragment(doc));
        }

        private void radButton3_Click(object sender, EventArgs e)
        {
            Telerik.WinForms.Documents.Model.RadDocument document = radRichTextEditor1.Document;

            Telerik.WinForms.Documents.FormatProviders.Html.HtmlFormatProvider provider = new Telerik.WinForms.Documents.FormatProviders.Html.HtmlFormatProvider();

            provider.ExportSettings.InlineUIContainerExporting += ExportSettings_InlineUIContainerExporting;

            provider.ExportSettings.DocumentExportLevel = Telerik.WinForms.Documents.FormatProviders.Html.DocumentExportLevel.Fragment;
            provider.ExportSettings.ExportFontStylesAsTags = true;
            provider.ExportSettings.SpanExportMode = Telerik.WinForms.Documents.FormatProviders.Html.SpanExportMode.DefaultBehavior;
            string htmlValue = provider.Export(document);
            webBrowser1.DocumentText = htmlValue;
        }

        private void ExportSettings_InlineUIContainerExporting(object sender, Telerik.WinForms.Documents.FormatProviders.Html.InlineUIContainerExportingEventArgs e)
        { 
        }

Completed
Last Updated: 17 Jun 2019 14:19 by ADMIN
Release R2 2019 SP1
Hello Telerik, 

your control changed the format to Verdana when import rtf. But only in the first line. And only the first line is Arial. Is the first line with any other font formated, its all ok.

Here the code:

string rtfText = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fnil\fcharset0 Tahoma;}{\f2\fnil\fcharset0 Times New Roman;}{\f3\fnil\fcharset0 Arial Unicode MS;}{\f4\fnil\fcharset0 Calibri;}}
{\colortbl ;\red0\green0\blue0;}
\viewkind4\uc1\pard\tx300\tx600\tx900\tx1200\tx1500\tx1800\tx2100\tx2400\tx2700\tx3000\tx3300\tx3600\tx3900\tx4200\tx4500\cf1\b\fs32 Arial\f1\par
Tahoma\par
\f2 Times New Roman\par
\f0 Arial\f2\par
\f3 Arial Unicode MS\par
\f4 Calibri\b0\f0\fs20\par
}";
RtfFormatProvider rtf = new RtfFormatProvider();
this.radRichTextEditor1.Document = rtf.Import(rtfText);

this.richTextBox1.Rtf = rtfText;

In the screenshot you can see, left the standard .net rtf control and rigth the Telerik richtexteditor. 
The zip is the sample project.
Completed
Last Updated: 05 Jun 2018 10:06 by ADMIN
The following parts are with hard coded strings and cannot be localized:

 - Insert Caption (InsertCaptionDialog): Combo boxes for label and separator
 - Paragraph Properties (ParagraphPropertiesDialog): Units of spacing and indentation values (pt)
 - Tab Stops Properties (TabStopsPropertiesDialog): The text of the tabStopsToBeClearedTextBloc
 - Cross references: reference types Figure and Table
 - TOC  and TOF: Heading and Figure, Caption labels
 - Document Ruler: Tooltips
 - FormattingColorPicker: The "No Color" string
- ManageStylesDialog shows items "Modify" and "Delete" with hardcoded text.
Unplanned
Last Updated: 06 May 2016 14:13 by ADMIN
To reproduce:
- insert a fragmet from another RichtextEditor like this:
private void Button_Click(object sender, RoutedEventArgs e)
{
radRichTextBox.Document.Sections.Clear();
radRichTextBox.Document.Sections.Add(new Section());

radRichTextBox.Document.CaretPosition.MoveToLastPositionInDocument(); 
radRichTextBox.DocumentEditor.InsertParagraph();
radRichTextBox.DocumentEditor.InsertFragment(new DocumentFragment(radRichTextEditor1.Document));
radRichTextBox.DocumentEditor.InsertParagraph();
}

Workaround:
There is no point of resetting the section in such way. Nevertheless, you can avoid the exception by using one of the following methods:

radRichTextBox.Document.MeasureAndArrangeInDefaultSize();
radRichTextBox.UpdateEditorLayout();
Completed
Last Updated: 27 May 2019 11:40 by ADMIN
Release Fixed in R2 2019 (LIB 2019.2.603)
Unplanned
Last Updated: 30 Mar 2016 11:23 by ADMIN
To reproduce:
- Add two tabs in a PageView
- Add RadRichTextEditor in the second tab
- Select some text to show the mini toolbar 
- Select the first page.

Workaround
void radPageView1_SelectedPageChanged(object sender, EventArgs e)
{
    if (radPageViewPage2.IsContentVisible == false)
    {
        radRichTextEditor1.RichTextBoxElement.SelectionMiniToolBar.Hide();
    }
}

Unplanned
Last Updated: 30 Mar 2016 10:58 by ADMIN
Import the following code:
<ol>
  <li>Coffee</li>
  <li></li>
  <li>Milk</li>
</ol
Unplanned
Last Updated: 19 Jun 2017 10:40 by Bill
To reproduce: add some text to RadRichTextEditor and set the Enabled property to false. You will notice that the text gets bold and blurry. 

Workaround: instead of disabling RadRichTextEditor, use the ReadOnly property.
Completed
Last Updated: 20 Jan 2020 12:07 by ADMIN
Release R1 2020 SP1 (LIB 2020_1_120)
Declined
Last Updated: 20 Jun 2017 05:39 by ADMIN
Workaround: load an empty docx document in the RadRichTextEditor and use it as a template
public RadDocument ImportDocx()
{
    RadDocument document = null;
    IDocumentFormatProvider provider = new DocxFormatProvider();
    OpenFileDialog openDialog = new OpenFileDialog();
    openDialog.Filter = "Documents|*.docx";
    openDialog.Multiselect = false;
    DialogResult dialogResult = openDialog.ShowDialog();
    if (dialogResult == System.Windows.Forms.DialogResult.OK)
    {
        using (Stream stream = openDialog.OpenFile())
        {
            document = provider.Import(stream);
        }
    }
    return document;
}
Completed
Last Updated: 16 Apr 2021 08:46 by ADMIN
Release R2 2021
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: RichTextEditor
Type: Bug Report
3
Add only a RichTextEditorRibbonBar without any other control on the form. If you run the application you will notice that it loads more than one second. We should investigate if it is possible and how to improve the initialization time.
Completed
Last Updated: 23 Nov 2021 09:48 by ADMIN
Release R3 2021 SP2

Hi Sir,

We updated telerik and facing some issues with that.

in new update with rich text editor has new property called  MentionBox settings of that auto added in to designer code. 

which creates an error when we run the application.

following line is auto added.

mentionBox1.FocusedItemIndex = -1;

 

we have to comment every time after doing UI changes. and we need to check every time whether that line is commented or not. 

 

Please Help Us.

Thanks,

Ashish.

Unplanned
Last Updated: 28 Feb 2018 12:56 by ADMIN
Unplanned
Last Updated: 21 Nov 2017 11:40 by ADMIN
Completed
Last Updated: 14 May 2019 10:53 by ADMIN
Release R3 2018
The issue only reproduces on Windows 10( 1806). Check the attached video showing the result: 

Workaround: Handle the CommandExecuting event this way
private void RadRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is ChangeFontFamilyCommand && e.CommandParameter.ToString() == "")
    {
        e.Cancel = true; 
    }
}
Completed
Last Updated: 17 Feb 2016 21:05 by Svetlin
If you import a rtf document, it produces a span instances with highlight color property set to ARGB(255,0,0,0).

Workaround:

foreach (Span span in document.EnumerateChildrenOfType<Span>())
{
    if (span.HighlightColor == Color.FromArgb(255, 0, 0, 0))
    {
        span.HighlightColor = Color.Transparent;
    }
}
1 2 3 4 5 6