开发者

SpellCheck in WinForms WebBrowser

We are wanting to add spell-check to a website hosted in our application via the WebBrowser control.

If you open our sites in a newer browser like IE9, etc. spellchecking already works in the browser by default.

Is there a way to get this working in the WinForms Web开发者_如何学JAVABrowser control?

EDIT: what about making it work in the Frame control in WPF?


Spell checking with IE 11 or Edge is working on Web Browser control and Windows 10 now. I have managed to make it work on a contenteditable body:

foreach (HtmlElement el in Document.All)
        {
            el.SetAttribute("unselectable", "on");
            el.SetAttribute("contenteditable", "false");
        }
        Document.Body.SetAttribute("width", Width.ToString() + "px");
        Document.Body.SetAttribute("contenteditable", "true");
        Document.Body.SetAttribute("spellcheck", "true");


I'm planning on trying it myself but IESpell looks like a good client side solution. Should work since the WebBrowser control uses IE under the hood.

EDIT: I had trouble getting IESpell working in the WebBrowser control so I went looking for an html editor and found TinyMCE and another article to use it in WinForms. TinyMCE has a spell check feature.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜