Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple HTML editor using webBrowser control
Message
 
To
22/03/2018 18:26:25
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:
01658954
Views:
311
I can enable spelchecking in the web browser control with Document.Body.spellcheck = .T.
or with an actual attribute set directly in the html
<body contenteditable = "true" spellcheck = "true"> ...
I am using Windows 10 (spellchecking is provided through the OS(?).
Here is a link with instructions for enabling spellchecking in different version of IE/Windows:
https://answers.microsoft.com/en-us/ie/forum/ie11-iewindows_10/spelling-correction-and-checking-in-internet/a1321c59-3623-49a2-8fce-388ecc2cb057
*
Re context menu: You see a context menu with [insert image] if you use DesignMode = "on". When I set Document.Body.contenteditable = .T. I see a different context menu sensitive to the editing area. This menu does not include [insert image], which is ok because I don't want to allow pasting images into the editor.
*

>try also spellecheck (in my IE that dont appear!)
>
>try
>with _screen.activeform.olecontrol1.document.body
>.spellcheck=iif(.spellchek=.f.,.t.,.f.)
>endwith		 
>catch
>endtry
>

>note that on design mode a contextuel menu is native (rightclick to fire it...select,copy,paste..)-there is also insert image.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform