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);
    }
}
Unplanned
Last Updated: 15 Aug 2017 10:08 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category: RichTextEditor
Type: Feature Request
3
Support for math type equations. 
Completed
Last Updated: 12 Feb 2016 07:11 by ADMIN
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: 15 Aug 2017 10:02 by ADMIN
The scenario is very common, as in MS Word the option Table -> Layout -> Cell Size -> AutoFit ->  "AutoFit Contents" changes the PreferredWidth of the table and its columns to Auto.
Also the tables imported from HTML have these properties set by default.

Scenarios:
- Auto-sized table occupies minimal space.
- All auto-sized columns in a table (table itself could be, or could be not, auto-sized) should always be sized proportionally to their content length. Currently, such columns are sized equally in the case when there is enough space for all of the content, which is unexpected. (also see the attached images for the scenario with fixed-width table + auto-sized columns).
Completed
Last Updated: 06 Jan 2016 11:00 by ADMIN
To reproduce:
- Export document with an inline UI elements to HTML.
- Import the document.

 Workaround:
- Manually export the UI elements information and then create new UI elements when the document is imported:
void ImportSettings_InlineUIContainerImporting(object sender, InlineUIContainerImportingEventArgs e)
{
    PropertyInfo property = typeof(InlineUIContainerImportingEventArgs).GetProperty("Handled");
    property.GetSetMethod(true).Invoke(e, new object[] { true });

    ObjectHandle handle = Activator.CreateInstance("Telerik.WinControls.UI", e.CommentContent);
    Object control = handle.Unwrap();
    InlineUIContainer container = new InlineUIContainer();
    RadElementUIContainer radContainer = new RadElementUIContainer(control as RadElement);
    container.UiElement = radContainer;
    container.Height = 30;
    container.Width = 300;
    e.TargetParagraph.Inlines.Add(container);
}
//export
private void btnWrite_Click(object sender, EventArgs e)
{
    HtmlFormatProvider provider = new HtmlFormatProvider();
    provider.ExportSettings.InlineUIContainerExporting += ExportSettings_InlineUIContainerExporting;         
  
    File.WriteAllText(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\TelerikUITest.html", provider.Export(this.radRichTextEditor1.Document));
}

void ExportSettings_InlineUIContainerExporting(object sender, Telerik.WinForms.Documents.FormatProviders.Html.InlineUIContainerExportingEventArgs e)
{
    string control = ((RadElementUIContainer)e.InlineUIContainer.UiElement).Element.ToString();
    e.CommentContent = control;
}

Completed
Last Updated: 25 May 2016 11:12 by ADMIN
Completed
Last Updated: 17 Feb 2016 08:25 by ADMIN
To reproduce:
- Add some text and change its forecolor.
- Add more text and change its highlighting
- Save as rtf and open it in WordPad.
Unplanned
Last Updated: 30 Mar 2016 12:57 by ADMIN
Workaround:
void radRichTextEditor1_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is PasteCommand)
    {
        e.Cancel = true;
        PasteNewText();
    }
}

public void PasteNewText()
{
    DocumentFragment clipboardDocument = null;
    string clipboardText = null;
    bool clipboardContainsData = false;

    if (ClipboardEx.ContainsDocument(null))
    {
        clipboardDocument = ClipboardEx.GetDocument();
        clipboardContainsData = true;
    }
    else if (ClipboardEx.ContainsText(null))
    {
        clipboardText = ClipboardEx.GetText(null);
        clipboardContainsData = true;
    }

    if (!clipboardContainsData)
    {
        return;
    }

    if (clipboardDocument != null)
    {
        RadDocument doc = new RadDocument();
        RadDocumentEditor editor = new RadDocumentEditor(doc);
        editor.InsertFragment(clipboardDocument);
         
        TxtFormatProvider provider = new TxtFormatProvider();
        string plainText = provider.Export(doc);

        this.radRichTextEditor1.RichTextBoxElement.ActiveDocumentEditor.Insert(plainText);
    }
    else if (!string.IsNullOrEmpty(clipboardText))
    {
        this.radRichTextEditor1.RichTextBoxElement.ActiveDocumentEditor.Insert(clipboardText);
    }
}
Declined
Last Updated: 11 Dec 2015 16:25 by ADMIN
Completed
Last Updated: 08 Feb 2016 11:50 by ADMIN
Completed
Last Updated: 23 Jun 2016 06:09 by ADMIN
Workaround:

private void CopyButton_Click(object sender, EventArgs e)
{
    this.radRichTextEditor1.Document.EnsureDocumentMeasuredAndArranged();
    if (this.radRichTextEditor1.Document.Selection.IsEmpty)
    {
        return;
    }

    string selectedText = this.radRichTextEditor1.Document.Selection.GetSelectedText();
    DocumentFragment fragmentToCopy = this.radRichTextEditor1.Document.Selection.CopySelectedDocumentElements(true);
    DataObject dataObject = new DataObject();
    if (selectedText != "")
    {
        ClipboardEx.SetText(null, selectedText, dataObject);
    }

    ClipboardEx.SetDocument(fragmentToCopy, dataObject);
    ClipboardEx.SetDataObject(dataObject);
}


Completed
Last Updated: 03 Jun 2016 09:41 by ADMIN