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: 27 May 2019 11:40 by ADMIN
Release Fixed in R2 2019 (LIB 2019.2.603)
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.
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: 03 May 2019 09:58 by ADMIN
Importing html documents having the property vertical-align property used with length values - for example: vertical-align = 3px, throws InvalidCastException. 
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;
    }
}
Completed
Last Updated: 03 Jun 2015 13:40 by ADMIN
To reproduce:
- Add RichTextEditorRibbonBar to a form and open it upon button click several times.
- You will notice that the memory is constantly increasing.

Workaround:
protected override void Dispose(bool disposing)
{
    if (disposing && (components != null))
    {
        components.Dispose();
    }

    FieldInfo f1 = this.richTextEditorRibbonBar1.GetType().GetField("tabTableStyle", BindingFlags.NonPublic| BindingFlags.Instance);
    RichTextEditorRibbonTab tab1 = f1.GetValue(richTextEditorRibbonBar1) as RichTextEditorRibbonTab;
    tab1.Dispose();

    FieldInfo f2 = this.richTextEditorRibbonBar1.GetType().GetField("tabTableLayout", BindingFlags.NonPublic | BindingFlags.Instance);
    RichTextEditorRibbonTab tab2 = f2.GetValue(richTextEditorRibbonBar1) as RichTextEditorRibbonTab;
    tab2.Dispose();

    FieldInfo f3 = this.richTextEditorRibbonBar1.GetType().GetField("tabHeaderFooter", BindingFlags.NonPublic | BindingFlags.Instance);
    RichTextEditorRibbonTab tab3 = f3.GetValue(richTextEditorRibbonBar1) as RichTextEditorRibbonTab;
    tab3.Dispose();

    base.Dispose(disposing);
}
Completed
Last Updated: 04 Jun 2015 13:24 by Chris Ward
To reproduce:
- Add some text so the scrollbars appear.
- Scroll up and down with the mouse wheel.
- When you scroll to the bottom you will notice that there is extra space after the document end.

Workaround: http://www.telerik.com/forums/backspace-key-does-not-properly-invalidate-editor#sP5qkJX4b0S8jwZ3MUGTmQ
Completed
Last Updated: 17 Feb 2016 13:03 by ADMIN
When importing HTML files if the font from the style contains serif element the font does not get interpreted correctly. For example "font-family: 'Times New Roman','serif';" - this will not work, but this font-family: 'Times New Roman';" will work.
Completed
Last Updated: 27 Jan 2015 13:34 by ADMIN
Drop a RadRichTextEditor and a WinForms button on a form.
Set the text of the button to "&Activate" and show a message box in the button click handler.
Run the program, and type some text - the button is activated whenever you try to type the letter "a" in the editor.

Workarround: Inherit RadRichTextEditor and override IsInputChar method
protected override bool IsInputChar(char charCode)
{
    return true;
}

Completed
Last Updated: 06 Feb 2016 08:48 by ADMIN
To reproduce:

1. Install a font that is not part of the default ones.
2. Enter some text in RadRichTextEditor and use the installed font.
3. Export to pdf.
4. Uninstall the font.
5. Try to open the exported pdf. You will notice that the font is not embedded into the file and can not render the text correctly. Please refer to the attached sample pdf file with custom font.
Completed
Last Updated: 14 Feb 2017 07:59 by ADMIN
Trying to export a document which contains hyperlink pasted from Outlook throws KeyNotFoundException. The color of the span is not registered.

Workaround:     
            Telerik.WinForms.Documents.Model.Styles.StyleDefinition style = new Telerik.WinForms.Documents.Model.Styles.StyleDefinition("test", Telerik.WinForms.Documents.Model.Styles.StyleType.Character);
            style.SpanProperties.ForeColor = Color.FromArgb(5,99,193);
            this.radRichTextEditor1.Document.StyleRepository.Add(style);
Completed
Last Updated: 25 May 2016 11:12 by ADMIN
Completed
Last Updated: 21 Jun 2018 14:39 by ADMIN
To reproduce:
- Drop RadRichTextEditor  to a form.
- Set the theme to FluentDark. 

Workaround:
radRichTextEditor1.ChangeTextForeColor(Color.White);

or

public void SetBackColor()
{
    this.radRichTextEditor1.RichTextBoxElement.BackColor = Color.White;
    Theme theme = ThemeRepository.FindTheme("TelerikMetroBlue");

    foreach (var styleGroup in theme.StyleGroups)
    {
        foreach (PropertySettingGroup settingGroup in styleGroup.PropertySettingGroups)
        {
            if (settingGroup.Selector.Value == "Telerik.WinControls.RichTextEditor.UI.Page")
            {
                foreach (PropertySetting property in settingGroup.PropertySettings)
                {
                    if (property.Name == "BackColor")
                    {
                        property.Value = System.Drawing.Color.White;
                    }
                }
            }
            if (settingGroup.Selector.Value == "Telerik.WinControls.RichTextEditor.UI.HeaderFooterContainer")
            {
                foreach (PropertySetting property in settingGroup.PropertySettings)
                {
                    if (property.Name == "OverlayColor")
                    {
                        property.Value = System.Drawing.Color.White;
                    }
                }
            }
        }
    }

}
Completed
Last Updated: 04 Jun 2018 11:54 by Dimitar
To reproduce: add a RadRichTextEditor with ribbon UI. Set the RichTextEditorRibbonBar's theme to Fluent at design time. When you run the application you will notice that the theme is not properly applied to the backstage view.

Workaround: ThemeResolutionService.ApplicationThemeName = "Fluent";
Completed
Last Updated: 04 Jun 2018 13:45 by Dimitar
Workaround:

        public TextEditorRadForm()
        {
            InitializeComponent();
            ((RadForm)this.radRichTextEditor1.RichTextBoxElement.InsertCaptionDialog).Controls["radRichTextEditorLabel"].Text = "";
        }
Completed
Last Updated: 25 Jun 2018 10:17 by ADMIN
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinForms.Documents.UI.UIProviders.WatermarkUIProvider.Arrange(UILayerUpdateContext uILayerUpdateContext)
   at Telerik.WinForms.Documents.UI.Layers.ProviderUILayerBase.ArrangeChildren()
   at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.ArrnageUILayers()
   at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureChildren(SizeF availableSize)
   at Telerik.WinControls.RichTextEditor.UI.FrameworkElement.MeasureOverride(SizeF availableSize)
   at Telerik.WinControls.RadElement.MeasureCore(SizeF availableSize)
   at Telerik.WinControls.RadElement.Measure(SizeF availableSize)
   at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout()
   at Telerik.WinForms.Documents.UI.DocumentPrintPresenter.Telerik.WinForms.RichTextEditor.IDocumentEditorPresenter.UpdateLayout()
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.<>c__DisplayClass3.<UpdateEditorLayout>b__2()
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.UpdateEditorLayout(Boolean focusCarret, Boolean updateCaretSize, Boolean async)
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.set_ActiveEditorPresenter(IDocumentEditorPresenter value)
   at Telerik.WinForms.RichTextEditor.RadRichTextBox.Telerik.WinControls.UI.IPrintable.BeginPrint(RadPrintDocument sender, PrintEventArgs args)
   at Telerik.WinControls.UI.RadPrintDocument.OnBeginPrint(PrintEventArgs e)
   at System.Drawing.Printing.PrintDocument._OnBeginPrint(PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at System.Windows.Forms.PrintPreviewControl.ComputePreview()
   at System.Windows.Forms.PrintPreviewControl.CalculatePageInfo()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


To reproduce: please refer to the attached gi file demonstrating how to replicate the problem with the Demo application.

Workaround:

        private void radRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
        {
            if (e.Command  is ChangeIntegratedWatermarkTypeCommand && this.radRichTextEditor1.LayoutMode!= Telerik.WinForms.Documents.Model.DocumentLayoutMode.Paged)
            {
                e.Cancel = true; 
            }
        }
Completed
Last Updated: 02 Jul 2018 09:35 by ADMIN
Completed
Last Updated: 30 Oct 2017 10:19 by ADMIN
How to reproduce: simply configure Polish keyboard and press [ALT GR] + [C], the added text is "©ć". The expected behavior would be to only add "ć"

Workaround: Handle the CommandExecuting event:
private void RadRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
    if (e.Command is InsertTextCommand && e.CommandParameter.ToString() == "©")
    {
        e.Cancel = true;
    }
}
Completed
Last Updated: 12 Dec 2017 15:18 by ADMIN
How to reproduce: check the attached project and video

Workaround: create a custom RichTextEditorRibbonBar
Public Class CustomRichTextEditorRibbonBar
    Inherits RichTextEditorRibbonBar

    Protected Overrides Sub HandleFontStylePropertiesOnCurrentEditingStyleChanged()
        If Me.dropDownListFont.BindingContext Is Nothing Then
            Me.dropDownListFont.BindingContext = Me.BindingContext
        End If

        If Me.dropDownListFontSize.BindingContext Is Nothing Then
            Me.dropDownListFontSize.BindingContext = Me.BindingContext
        End If

        MyBase.HandleFontStylePropertiesOnCurrentEditingStyleChanged()
    End Sub

End Class
1 2 3 4 5 6