How can I change font size to 30px (for example) using document.execCommand?
document.execCommand
This:
document.execCommand(\"fontSize\", false, \"30px\");
As second answer suggest just run some jquery after execcommand and replace the markup with your own.
Just replace elem with your element and edit the font-size with the desired value.
jQuery("font[size]", elem).removeAttr("size").css("font-size", "10px");