in a rich text editor implemented with js, the font size is set using the function:
document.execCommand("fontsize", false, fontsize);
but the function only accepts fontsize
for font size parameters
currently want to achieve the effect in pixels, for example: 12px, 14px,
do not know how to achieve, would like to ask friends with experience, how to achieve this effect? Or try what?
Thank you!