A good html capable richedit replacement for winforms? [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionCan anyone recommend a html replacement for a winforms (c#) richedit control?
I would like a control like the build in richedit control, that just use HTML instead of rtf to store the text. I don't want it to edit HTML, just to present a editor with images and styled text that store the result in html.
I would prefer a free control, but if there aren't any good control a commercial control would be acceptable too.
开发者_运维知识库Martin
If a WPF control is an option, look at this control: http://wpfricheditorlibrary.codeplex.com/
There is an excellent open-source library for converting RTF to HTML... you could couple this with either the built-in richedit control, or use one of the many extended controls to achieve your goal. You'd just need to wire the two together, which isn't that hard.
The RTF to HTML library: http://www.codeproject.com/KB/recipes/RtfConverter.aspx
A couple of the extended RTF controls:
http://www.c-sharpcorner.com/uploadfile/scottlysle/wordprocessor02042007234628pm/wordprocessor.aspx
http://www.codeproject.com/KB/edit/WinFormsCodeBox.aspx
HTH ~ James
精彩评论