Completed
Last Updated: 07 Jun 2016 15:32 by ADMIN
When the specified length of the stream is larger than the actual one, Adobe throws errors and removes the image.

Workaround:

Set the format provider settings:

PdfFormatProvider provider = new PdfFormatProvider();
PdfExportSettings exportSettings = new PdfExportSettings();
exportSettings.ContentsDeflaterCompressionLevel = 9;
exportSettings.ImagesDeflaterCompressionLevel = 9;
provider.ExportSettings = exportSettings;
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 May 2016 13:16 by ADMIN
ADMIN
Created by: Hristo
Comments: 0
Category: RichTextEditor
Type: Feature Request
2

			
Declined
Last Updated: 25 Apr 2016 14:43 by ADMIN
To reproduce:

radRichTextEditor.Document = new RadDocument();
radRichTextEditor.Document.MeasureAndArrangeInDefaultSize();
radRichTextEditor.UpdateEditorLayout();
radRichTextEditor.Document.CaretPosition.MoveToLastPositionInDocument();

var p = new Paragraph();
p.Inlines.Add(new Span("Cell"));
var cell = new TableCell();
cell.Blocks.Add(p);
var row = new TableRow();
row.Cells.Add(cell);
var table = new Table();
table.Rows.Add(row);
var section = new Section();
section.Blocks.Add(table);
radRichTextEditor.Document.Sections.Add(section);
radRichTextEditor.Document.CaretPosition.MoveToLastPositionInDocument();

var provider = new RtfFormatProvider();
var txt = provider.Export(radRichTextEditor.Document);
Clipboard.SetText(txt, TextDataFormat.Rtf);

Workaround: measure the document after the section is added:
radRichTextEditor.Document.Sections.Add(section);
radRichTextEditor.Document.MeasureAndArrangeInDefaultSize();
radRichTextEditor.UpdateEditorLayout();
Unplanned
Last Updated: 31 Dec 2018 11:00 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 4
Category: RichTextEditor
Type: Feature Request
5

			
Completed
Last Updated: 20 Oct 2016 15:42 by ADMIN
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();
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;
Completed
Last Updated: 18 Jun 2018 08:34 by ADMIN
ADMIN
Created by: Dimitar
Comments: 1
Category: RichTextEditor
Type: Feature Request
2

			
Unplanned
Last Updated: 30 Apr 2021 08:16 by ADMIN
Unplanned
Last Updated: 05 Apr 2016 12:22 by ADMIN
1. Open RadRichTexEditor and type the following text: "שדג:3"  or open the attached file
2. Save the document as docx file
3. Compare the results in MS Word and in RadRichTexEditor

Observed result: in RadRichTexEditor the text is visualized as: ":3שדג"
Expected result: The text should be visualized as: "שדג:3"
Unplanned
Last Updated: 21 Mar 2016 13:39 by ADMIN
Completed
Last Updated: 10 Jun 2016 05:01 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: RichTextEditor
Type: Bug Report
1
To reproduce:

private void radButton1_Click(object sender, EventArgs e)
{
    var document = new RadDocument(); 
    var section = new Section();
    document.Sections.Add(section);
    var paragraph = new Paragraph();
    section.Blocks.Add(paragraph);
    var span = new Span("BOLD");
    span.FontWeight = FontWeights.Bold;
    paragraph.Inlines.Add(span);

    span = new Span(" REGULAR");
    paragraph.Inlines.Add(span);

    editor.Document = document;

    var pdfExporter = new PdfFormatProvider();
    var path = Path.GetTempFileName() + ".pdf";
    using (var file = File.Create(path))
    {
        pdfExporter.Export(document, file);
        file.Flush();
        file.Close();
        
    }
    Process.Start(path);
}

Workaround: export .docx file and use the RadWordsProcessing library to import the .doc file and export it to pdf:

private void radButton1_Click(object sender, EventArgs e)
{
    var document = new RadDocument();
    var section = new Section();
    document.Sections.Add(section);
    var paragraph = new Paragraph();
    section.Blocks.Add(paragraph);
    var span = new Span("BOLD");
    span.FontWeight = FontWeights.Bold;
    paragraph.Inlines.Add(span);

    span = new Span(" REGULAR");
    paragraph.Inlines.Add(span);

    editor.Document = document;

    var wordExporter = new Telerik.WinForms.Documents.FormatProviders.OpenXml.Docx.DocxFormatProvider();
    var wordPath = Path.GetTempFileName() + ".doc";
    using (var file = File.Create(wordPath))
    {
        wordExporter.Export(document, file);
        file.Flush();
        file.Close();
    }

    Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider provider =
        new Telerik.Windows.Documents.Flow.FormatProviders.Docx.DocxFormatProvider();
    using (Stream input = File.OpenRead(wordPath))
    {
        Telerik.Windows.Documents.Flow.Model.RadFlowDocument doc = provider.Import(input);

        Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider pdfProvider =
            new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
        string filePath = @"..\..\" + DateTime.Now.ToLongTimeString().Replace(":", "-");
        using (var output = File.Create(filePath))
        {
            pdfProvider.Export(doc, output);
        }
        Process.Start(filePath);
    }
}
Unplanned
Last Updated: 30 Mar 2016 12:59 by ADMIN
Unplanned
Last Updated: 06 May 2016 14:13 by ADMIN
To reproduce:
- Copy the content from the attached document - do not copy the last row.
- Remove the bookmarks like this:

bookmarks = radRichTextEditor1.Document.GetAllBookmarks().ToArray();
foreach (BookmarkRangeStart item in bookmarks)
{
    radRichTextEditor1.Document.GoToBookmark(item);
    radRichTextEditor1.DocumentEditor.DeleteBookmark(item);
   
}

Workaround:
                    var invalidStarts = this.radRichTextBox.Document
                    .EnumerateChildrenOfType<BookmarkRangeStart>()
                    .Where(start => start.End == null)
                    .ToList();

                    foreach (var invalidStart in invalidStarts)
                    {
                        invalidStart.Parent.Children.Remove(invalidStart);
                    } 
Note that when this workaround is used the document history will be deleted as well, which means that the undo operation will no longer hold information for previous operations
Completed
Last Updated: 29 Feb 2016 10:17 by ADMIN
ADMIN
Created by: Dimitar
Comments: 0
Category: RichTextEditor
Type: Bug Report
1
To reproduce:
1 Please change the font via selection list first.
2 Set text cursor to font input field and select the whole text (if not already done).
3 Press backspace or delete key.
4 An error message appears.

Workaround:
protected override void DropDownListFont_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
{
    var ddl = sender as RadDropDownListElement;
    if (ddl.SelectedItem != null)
    {
        base.DropDownListFont_SelectedIndexChanged(sender, e);
    }
}
Completed
Last Updated: 12 Feb 2016 07:26 by ADMIN
To reproduce:
- Open a document that contains symbols with the 2015 Q3 SP1 version.
- Export the document using the docx format.
- Open it again.

Workaround:
private void radRichTextEditor1_DocumentChanged(object sender, EventArgs e)
{
    this.SelectAllMatches("");
    this.radRichTextEditor1.ChangeFontFamily(new Telerik.WinControls.RichTextEditor.UI.FontFamily("Symbol"));
    this.SelectAllMatches("");
    this.radRichTextEditor1.ChangeFontFamily(new Telerik.WinControls.RichTextEditor.UI.FontFamily("Symbol"));
}
 
private void SelectAllMatches(string toSearch)
{
    this.radRichTextEditor1.Document.Selection.Clear();
    DocumentTextSearch search = new DocumentTextSearch(this.radRichTextEditor1.Document);
    foreach (var textRange in search.FindAll(toSearch))
    {
        this.radRichTextEditor1.Document.Selection.AddSelectionStart(textRange.StartPosition);
        this.radRichTextEditor1.Document.Selection.AddSelectionEnd(textRange.EndPosition);
    }
}