WordPress TinyMCE 🎨 Customize color palette

The respect of the colors of the graphic charter of a site is essential for a successful web design. A simple way to encourage this good practice is to configure the default colors proposed by the TinyMCE plugin editor palette.

Just add the following code to the file functions.php by placing the colors in hexadecimal format (without the'#') followed by a name that will be displayed if you fly over a color in the palette with your pointer.