Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Is there a way to set a custom font size with TinyMCE?


I see there are paragraph options, but I don't see an option to set a custom font size. Any ideas?

Apr 11, 2022 12:51

I found that I could add fontsizeselect to the Toolbar string, but I'm having trouble defining the sizes somewhere. In the JS settings, there's an "initi" section that allows this. But I'm not sure of the C# equivalent.

Apr 11, 2022 13:07


If you want to allow editors to choose from a specific list of font sizes then, as you've spotted, you can add "fontsizeselect" to the toolbar to display the font size dropdown. To control the options in that dropdown, you can call the AddSetting method of your TinyMceSettings like this:

    .Toolbar("bold italic underline fontsizeselect")
    .AddSetting("fontsize_formats", "1pt 2pt 3pt 9pt 100pt");

To maintain consistency between pages though, I tend to go for allowing specific styles from the style dropdown instead of allowing the editors to change font sizes directly.

Apr 11, 2022 13:30
eperezjr - Apr 11, 2022 13:51
Perfect! Thanks so much for your help.

I think what you are looking for is here in this documentation 

Apr 11, 2022 13:30
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.