Solved

How to set a default Font and Fontsize on a column with HTML-editor?

  • 25 April 2019
  • 3 replies
  • 147 views

Userlevel 4
Badge +11
Is it possible to set a default Font and Fontsize on HTML-fields in the application? Default the HTML-editor use:

  • Segoe UI (9)


I would like to use as default settings Calibri Light (10).
icon

Best answer by Anne Buit 29 April 2019, 09:01

View original

3 replies

Userlevel 7
Badge +5
Hi Dennis,

The HTML editor uses the UI font by default. This is not stored with the value, so if the UI font changes, the data in HTML controls will change accordingly.

There is currently no setting to force a specific font in the HTML control. However, you could use default logic to forcibly set the font.

Userlevel 4
Badge +11
Hi Anne,

Thanks for the answer. Can you explain a little bit more which steps I need to follow to implement and assign this part of code by using the Software Factory?

Userlevel 7
Badge +5
Hi Dennis,

If you assign this template to the subject with the HTML field and you ensure the variable used to indicate the html field (@html_data) is changed to your html column id, it should work.

Keep in mind that the default logic will fire the moment you leave the field. The user will see the default font until then.

Reply