2 * document.execCommand("fontSize") will create either inline styles (firefox, chrome) or use font tags
4 * Instead we set a css class
7 var REG_EXP = /wysiwyg-font-size-[0-9a-z\-]+/g;
9 wysihtml5.commands.fontSize = {
10 exec: function(composer, command, size) {
11 wysihtml5.commands.formatInline.execWithToggle(composer, command, "span", "wysiwyg-font-size-" + size, REG_EXP);
14 state: function(composer, command, size) {
15 return wysihtml5.commands.formatInline.state(composer, command, "span", "wysiwyg-font-size-" + size, REG_EXP);