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