editor.execCommand("FontSize", false, "2"); editor.execCommand("FontName", false, "Arial");As Font Name you can use values like: Arial, Tahoma, Verdana, etc.
Important is, that font size is not in pixels !
Font size:
1 = 8pt
2 = 10pt
3 = 12pt
4 = 14pt
5 = 18pt
6 = 24pt
7 = 36pt
Font size:
1 = 8pt
2 = 10pt
3 = 12pt
4 = 14pt
5 = 18pt
6 = 24pt
7 = 36pt