Support » Plugin: Advanced Editor Tools (previously TinyMCE Advanced) » Adding more font sizes (px and (r)em)

  • Is there a way to add more font sizes in px and rem’s?

    It currently has this option;

    Replace the size setting available for fonts with: 8px 10px 12px 14px 16px 20px 24px 28px 32px 36px 48px 60px 72px 96px.

    I’d like to add a few more sizes between some of those and one larger one.

    Is it also possible for it to use rem sizes and then px backup, .i.e.

    <span style="font-size:16px;font-size:1rem;">My Text</span?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    Is there a way to add more font sizes in px and rem’s?

    Yes. It is a setting for TinyMCE, can be overwritten by using the https://wordpress.org/plugins/advanced-tinymce-configuration/.

    Is it also possible for it to use rem sizes and then px backup

    Doesn’t seem so. This is handled internally in TinyMCE, only values can be set in the options. The values can be with “mixed units” if that helps, like: 8pt 10pt 12pt 14pt 18pt 24pt 36pt 1rem 2rem.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.