A good html capable richedit replacement for winforms? [closed]

寵の児 提交于 2019-12-11 01:35:17

问题


Can 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


回答1:


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



来源:https://stackoverflow.com/questions/3456787/a-good-html-capable-richedit-replacement-for-winforms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!