Jan 18, 2018 The jHTMLeditor for B4j fixes the issue with setting focus to the webview in the HTMLeditor control. Usage v1.0 Code: Copy jHTMLeditor.RequestFocus(Name of HTMLeditor control) Usage v1.1 Code: Copy jHTMLeditor.RequestFocus(Name of HTMLeditor control) Code: Copy jHTMLeditor.SetCaretLast(Name of HTMLeditor control) Code: Copy 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 Code: Copy Sleep(0) between these commands. Attachments jHTMLeditor v1.0 B4j library.zip jHTMLeditor v1.0 B4j library.zip 3.5 KB · Views: 741 jHTMLeditor v1.1 B4j library.zip jHTMLeditor v1.1 B4j library.zip 4.5 KB · Views: 786 Last edited: Jan 18, 2018 Click to expand...
The jHTMLeditor for B4j fixes the issue with setting focus to the webview in the HTMLeditor control. Usage v1.0 Code: Copy jHTMLeditor.RequestFocus(Name of HTMLeditor control) Usage v1.1 Code: Copy jHTMLeditor.RequestFocus(Name of HTMLeditor control) Code: Copy jHTMLeditor.SetCaretLast(Name of HTMLeditor control) Code: Copy 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 Code: Copy Sleep(0) between these commands.