B4J Question [SOLVED] HTMLEditor and default settings

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
how can i set default font and font size in Htmleditor component after loading the layout?
I tried with ThRuST JHtmleditor but not work.
B4X:
jHTMLeditor.RequestFocus(HTMLEditor1)
jHTMLeditor.SetFontStyle(HTMLEditor1, "Arial", "Black", "10px", "")
I always find the font "Segoe UI" and size 12px

Thanks
and Happy Christmas to the whole community
 

stevel05

Expert
Licensed User
Longtime User
It does in fact work, but you have to set some text at the same time, otherwise there is nothing to set the style on.

B4X:
jHTMLeditor.SetFontStyle(HTMLEditor1,"Arial","Blue","15px","Initial Text")
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
It does in fact work, but you have to set some text at the same time, otherwise there is nothing to set the style on.
Yes you are right stevel05
I would like to change the font and size from the combobox after loading the layout
Thanks

1608787829815.png
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top