Adding font styles to the rich text dropdown

Is it possible to add custom style options to the rich text editor dropdown in HubSpot (so editors can pick them without manually applying classes)? If so, what is the correct way to configure this—via theme.json, fields.json, or another method?

Hey @IBF,

yes it’s possible. The only way to do so is via the fonts.json method.

TL;DR:

  • Upload all fonts to your theme in a folder like fonts/
  • Create a font.json file inside this folder which contains all information of each font
  • add “custom_fonts”: [ “PATH/TO/CREATED/fonts.json”] into your theme.json file

best,

Anton

Thank you for the reaction!
I will give this a try.