My question is how do you determine what is the font size of the specific text selection in pixels? So, something like 8px,10px,12px and so on.
One can always grab the stylesheet style, but how can I figure out with size corresponds to the 1 to 7 range on JS's document.execCommand("FontSize",0,"size") ?
I assume that also varies from the type of the font. Any function that I can go and select to determine that
I am trying to build a font drop down menu. So far I can make it work, but the value on the box does not correspond to the one I have selected sometimes showing something like 17 instead of the value 3. They I need to have it properly updated with the selected value.
Anyway to convert that to 8,9,10,12,14 like on the Outlook email editor?