- Find and extract wp-includes/js/tinymce/wp-tinymce.js.gz
- Search for "000000" in wp-tinymce.js so you'll find the default colors list and replace it w/ your own.
- Archive (gzip) the file back and upload it to the server.
wp-includes/js/tinymce/wp-tinymce.js.gz This is the gzip encoded version of the file wp-tinymce.js in the same folder. To edit the contents of the encoded file you first need to extract it, edit the .js file, then archive the file back to .gz. Easy but not that easy on a windows machine. Well actually you can skip the extracting part, because you have the original .js file sitting right next to the .gz version.
I used WinRAR to extract wp-tinymce.js.gz but found out that it can't archive files back to .gz, so i needed another program for that.. For gzipping files you'll need smth like GNU Zip (command line) or most probably Win-GZ (Graphical UI).
Ok, so once you've got the wp-tinmymce.js file extracted open it up in a text-editor. Search for "000000" in the file. That's where the default colors for the palette are defined. Just replace 'em with the ones you want and save the file.
Now all you need to do is gzip the file (so that it's named wp-tinymce.js.gz again) and replace it with the one on the server.


fantabulous. worked like a charm
ReplyDelete