aljosa/django-tinymce — pull request #17 by btaylordesign (2011-11-04 13:36:38+00:00)
Title: Added ability to set JS_URL and JS_ROOT when using staticfiles.

Hello,

First, thank you for this project. I've been using it for quite some time, and it's nice to finally be able to contribute something back.

I altered the settings slightly to allow the JS_URL and JS_ROOT properties to be set when using static files.

On a lot of projects, I serve my static files from S3 via CloudFront, and I've yet to be able to get TinyMCE's document.domain property to work properly with that setup. So, I just started serving the TinyMCE JavaScript files from the box that was handling the request, which avoids the cross-domain issue.

The functionality I added doesn't break the default behavior if you haven't specified JS_URL or JS_ROOT.

Kindest regards,
Brandon Taylor

btaylorweb.com