This is a migrated thread and some comments may be shown as answers.

Use the RichTextEditor to edit the source?

2 Answers 81 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Eric Moreau
Top achievements
Rank 2
Iron
Iron
Veteran
Eric Moreau asked on 29 Jun 2020, 05:59 PM

Hi

Is it possible to use the RichTextEditor (in WinForms) to edit the source/the formatting of the rich text? Much like the HTML view of the comparable ASP.Net control? 

There are sometimes when it is hard to understand why some formatting are applied specially when doing copy-and-paste.

I found the ToggleFormattingSymbolsCommand but while it is showing some code, it doesn't show them all and doesn't make the editing easier.

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 02 Jul 2020, 08:58 AM

Hi Eric,

Yes, this is possible by using the format providers. I have attached a small example that shows how this works. 

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Eric Moreau
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 02 Jul 2020, 06:20 PM
Thanks Dimitar. That is working for me.
Tags
RichTextEditor
Asked by
Eric Moreau
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Eric Moreau
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or