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

Html editor

2 Answers 477 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 13 Apr 2013, 12:38 AM
Hello,

Is it possible to make the RTF editor in control also an html editor? So if I allow user to create a document inside RTF editor, they can have choice to choose "edit source html" instead?

I thought this control allowed this?

2 Answers, 1 is accepted

Sort by
0
Matthew
Top achievements
Rank 1
answered on 15 Apr 2013, 03:15 AM
anybody?
0
Petya
Telerik team
answered on 17 Apr 2013, 03:27 PM
Hello Matthew,

Such functionality should be possible to achieve with RadRichTextBox and HtmlFormatProvider.

However, please note that the RadRichTextBox control is closer to a word processor than an HTML editor, so the HTML support has its limitations. I suggest you refer to these articles for more detailed information: HTML SupportImport/Export settings.

When it comes to what approach to adopt, you can try using HtmlDataProvider in order to create a two-way binding between a RadRichTextBox control and a TextBox (for example) similar to this online example.

I hope this helps!

Kind regards,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Matthew
Top achievements
Rank 1
Answers by
Matthew
Top achievements
Rank 1
Petya
Telerik team
Share this question
or