I am trying to get the font size of selected range in a html document. I used queryCommandValue to get it. Some times it return an integer. And some times it is not. I don't know what is it.
And I also tried another way to get the fontsize by getting the parent emlement's style. But it's not always correct for there could be different font size in its children.
with font size 16pt and body font size 10pt. Then I selected multiple lines. It just got the body's font size 10pt.
– Vichal Mar 23 '12 at 01:24