Does anyone see a way to make the TinyMCE 4 Font Sizes drop down offer font sizes in px instead of pt?
Thanks
Font size selection The TinyMCE rich text editor comes with 7 font size options by default, ranging from 8pt to 36pt. Depending on how TinyMCE is configured, users can select a font from the menubar or toolbar (via the fontsizeselect dropdown). A user selects a font size from the fontsizeselect toolbar menu.
This plugin adds the forecolor/backcolor button controls that enable you to pick colors from a color picker and apply these to text. It adds a toolbar button to enable this functionality.
You need to use the fontsize_formats
option where you can also change the unit of the values of the font sizes dropdown:
tinymce.init({
selector: 'textarea',
toolbar: 'fontsizeselect',
fontsize_formats: "8px 10px 12px 14px 18px 24px 36px"
});
Demo JSFiddle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With