>>>>I need a solution for simple HTML editing with font styles and spellchecking, and I was looking at using the WebBrowser control in design mode. Has anyone done that before? Or, can you recommend any third party controls that can be integrated in a VFP app?
>>>>TIA
>>>
>>>
http://www.atoutfox.org/articles.asp?ACTION=FCONSULTER&ID=0000000027>>
>>Thank you, Mike!
>>Just downloaded it and started playing with it. Looks promising, especially since spellchecking could be enabled in the browser, as well!
>>*
>
>Spell checking unfortunately doesn't work for most WYSIWYG solutions because you're not editing a textbox. In order for that to work the editor itself has to implement the spell checking logic
Actualy the problem is in mapping the locations between the rich text and plain text. Any spell checker expects plain text, and when it finds something it's marked in the raw text and a replacement inserted in it. But then mapping the position of that back into the rich text is a tricky business, because it's position is not absolute (in extreme cases, the html above the spell-checkpoint may be changed by some js - an ad server perhaps - while the user is in the spell checker dialog). So the position in the rich text is relative to document's DOM... this mapping is, IMO, the major headache. However, any decent browser nowadays is capable of it. Perhaps because it's doing it just locally, on the current word and not the whole text?
But then if it's to be an editor inside a webpage, wouldn't the browser of which, this is an instance, provide the the spellchecker and we actually don't have a problem?