import os
from django.conf import settings

DEFAULT_CONFIG = getattr(settings, 'TINYMCE_DEFAULT_CONFIG',
        {'theme': "simple", 'relative_urls': False})

USE_SPELLCHECKER = getattr(settings, 'TINYMCE_SPELLCHECKER', False)

USE_COMPRESSOR = getattr(settings, 'TINYMCE_COMPRESSOR', False)

USE_FILEBROWSER = getattr(settings, 'TINYMCE_FILEBROWSER',
        'filebrowser' in settings.INSTALLED_APPS)

if 'staticfiles' in settings.INSTALLED_APPS:
    JS_URL = os.path.join(settings.STATIC_URL, 'tiny_mce/tiny_mce.js')
    JS_ROOT = os.path.join(settings.STATIC_ROOT, 'tiny_mce')
else:
    JS_URL = getattr(settings, 'TINYMCE_JS_URL',
            '%sjs/tiny_mce/tiny_mce.js' % settings.MEDIA_URL)
    JS_ROOT = getattr(settings, 'TINYMCE_JS_ROOT',
            os.path.join(settings.MEDIA_ROOT, 'js/tiny_mce'))

JS_BASE_URL = JS_URL[:JS_URL.rfind('/')]

@@ -412,16 +412,85 @@
 icfiles'
+ in settings.INSTALLED_APPS or %5C%0A        'django.contrib.staticfiles'
  in sett
@@ -532,32 +532,40 @@
 s.path.join(
+getattr(
 settings
 .STATIC_URL,
@@ -548,25 +548,27 @@
 ttr(settings
-.
+, '
 STATIC_URL, 
@@ -565,16 +565,22 @@
 ATIC_URL
+', '')
 , 'tiny_
@@ -624,24 +624,32 @@
 th.join(
+getattr(
 settings
 .STATIC_
@@ -640,17 +640,19 @@
 settings
-.
+, '
 STATIC_R
@@ -654,16 +654,22 @@
 TIC_ROOT
+', '')
 , 'tiny_

Use STATIC_URL/STATIC_ROOT when using django.contrib.staticfiles (django 1.3)