The jHTMLeditor for B4j fixes the issue with setting focus to the webview in the HTMLeditor control.
Usage v1.0
Usage v1.1
This library is based on the excellent solution provided by Erel. v1.1 updates by ThRuST and Cableguy. SetCaretLast code is based on Erel's old solution and might not work after Java v9.01.
NOTE: You might have to use
between these commands.
Usage v1.0
B4X:
jHTMLeditor.RequestFocus(Name of HTMLeditor control)
Usage v1.1
B4X:
jHTMLeditor.RequestFocus(Name of HTMLeditor control)
B4X:
jHTMLeditor.SetCaretLast(Name of HTMLeditor control)
B4X:
jHTMLeditor.SetFontStyle(Name of HTMLeditor control, "Impact", "Green", "20px", "Text")
This library is based on the excellent solution provided by Erel. v1.1 updates by ThRuST and Cableguy. SetCaretLast code is based on Erel's old solution and might not work after Java v9.01.
NOTE: You might have to use
B4X:
Sleep(0)
Attachments
Last edited: