document.execCommand() FontSize in pixels?
It’s a limitation of the FontSize command. There are various options I can think of: You could use a CSS class instead and use the CSS class applier module of my Rangy library; You could use a hacky method, such as calling document.execCommand(“fontSize”, false, “7”); and then finding the elements the command has created and … Read more