Declined
Last Updated: 20 Jun 2017 05:39 by ADMIN
ADMIN
Hristo
Created on: 12 May 2015 16:08
Category: RichTextEditor
Type: Bug Report
3
FIX. RadRichTextEditor - pasting from MS Word when the default font settings are different than the ones in RadRichTextEditor causes loss of formatting
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;
}
1 comment
ADMIN
Dess | Tech Support Engineer, Sr.
Posted on: 20 Jun 2017 05:39
Missing functionality. A feature request has been logged: https://feedback.telerik.com/Project/154/Feedback/Details/219505-add-radrichtexteditor-expose-paste-option