[Gambas-user] How to WebView ExecJavascript

Martín mbelmonte at belmotek.net
Tue Jun 22 21:05:45 CEST 2021


I try to use this WebView1.ExecJavascript() but something doesn't work 
or i made something bad.

Public Sub tobColor_Click()

   WebView1.ExecJavascript("document.execCommand('forecolor', false, 

'or this

   WebView1.ExecJavascript("document.execCommand('bold', false, false)")

   WebView1.Refresh ' ¿Its line is necessary?


Also documentation in [1] is not available.

[1] http://gambaswiki.org/wiki/comp/gb.qt5.webview/webview/execjavascript

I would be grateful if someone could tell me where to find documentation 
or an ExecJavascript example for gambas version 3.16.
Some developers of the spanish forum are trying to develop a rich text 
editor with the webview control in WYSIWYG style.


More information about the User mailing list