B4J Library jHTMLeditor library

The jHTMLeditor for B4j fixes the issue with setting focus to the webview in the HTMLeditor control.

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)
between these commands.
 

Attachments

  • jHTMLeditor v1.0 B4j library.zip
    3.5 KB · Views: 442
  • jHTMLeditor v1.1 B4j library.zip
    4.5 KB · Views: 487
Last edited:
Top