TinyMCE colors

copy to functions.php
1) { $colorHex = $themeColorSplit[1]; $colorHex = preg_replace("/\s+/", "", $colorHex); $colorHex = preg_replace("/;/", "", $colorHex); $colorHex = preg_replace("/#/", "", $colorHex); $colorName = $themeColorSplit[0]; $colorName = preg_replace("/^--/", "", $colorName, 1); echo('
"'. $colorHex . '", "' . $colorName . '",
'); } } echo ("]'"); ?>