Custom font size units
The Bootstrap 5 button set includes both fontsize and fontsizeunit, so a custom
fontSizeUnits list still makes sense for design systems that mix px, pt, and rem.
Select text, change the size, then switch the unit between px, pt, and rem.
Tip: this is especially helpful when the saved HTML is consumed by multiple renderers.
Example configuration - Font Size Units
summernote.create('#font-size-units-editor', {
height: 260,
toolbar: [
['fontname', ['fontname']],
['fontsize', ['fontsize', 'fontsizeunit']],
['font', ['bold', 'italic', 'underline']],
],
fontSizeUnits: ['px', 'pt', 'rem'],
});