Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple HTML editor using webBrowser control
Message
From
21/03/2018 04:46:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01658825
Message ID:
01658899
Views:
59
>>>>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?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform