Re: RichTextEditor load rtf string

  •  08-25-2015, 9:56 AM

    Re: RichTextEditor load rtf string

    Hi,

     

    you can use the way below to get the rtf format of the editor content.

     

    RTE.Convertor.RTF.HTML2RTF content= new RTE.Convertor.RTF.HTML2RTF(editor1.Text);

    t1.Text = content.RTF.ToString();



    and you can use the code below to load the rtf format content into editor, it will covers into html.

     

    RTE.Convertor.RTF.RTF2HTML content2 = new RTE.Convertor.RTF.RTF2HTML(t1.Text);

    editor1.Text = content2.ParseRTF(); 

     

    Regards,

     

    Ken 

View Complete Thread