Posterous theme by Cory Watilo

Changing the background color of CKEditor editing area.

Very simple thing yet I've spent almost 20 minutes trying to figure it out and find how to do it.

The thing is that ckeditor uses white background for editing area and the sites background is dark, so text color was set to white by the client and when editing in cme nothing could be seen.

In order to feed ckeditor a stylesheet with all the style definitions that will be used in the editor area just use this:

CKEDITOR.config.contentsCss = "/css/admin/editor.css";

How to configure kohana 3.1 virtual host for nginx

I've strugled for a few hours until I finally found all the correct bits and pieces to make kohana with clean url rewritting work for nginx. There are several example configs scattered around the net, but they were all lacking some pieces. There were times when kohana just spat out some plain routing errors and other times when the index / was plain forbidden.

The results came when I finally stopped just copy pasting and really gave some thought into why it would not work as expected, then added 'index index.php' to location / and some other small tweaks here and there and vualia it finally showed the site as expected.

The final virtual host config: