Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Static files should be loaded via STATIC_URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
maartendraijer committed Jun 18, 2012
1 parent 28b1906 commit b7a3a2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/page.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ need to download `TinyMCE <http://www.tinymce.com/>`_ and configure FeinCMS'
richtext support::

FEINCMS_RICHTEXT_INIT_CONTEXT = {
'TINYMCE_JS_URL': MEDIA_URL + 'your_custom_path/tiny_mce.js',
'TINYMCE_JS_URL': STATIC_URL + 'your_custom_path/tiny_mce.js',
}


Expand Down Expand Up @@ -312,7 +312,7 @@ init_richtext.html that inherits from `admin/content/richtext/init_tinymce.html`
You can even set your own css and linklist files like so::
FEINCMS_RICHTEXT_INIT_CONTEXT = {
'TINYMCE_JS_URL': MEDIA_URL + 'your_custom_path/tiny_mce.js',
'TINYMCE_JS_URL': STATIC_URL + 'your_custom_path/tiny_mce.js',
'TINYMCE_CONTENT_CSS_URL': None, # add your css path here
'TINYMCE_LINK_LIST_URL': None # add your linklist.js path here
}
Expand All @@ -322,7 +322,7 @@ that one. Change the following settings::

FEINCMS_RICHTEXT_INIT_TEMPLATE = 'admin/content/richtext/init_ckeditor.html'
FEINCMS_RICHTEXT_INIT_CONTEXT = {
'CKEDITOR_JS_URL': MEDIA_URL + 'path_to_your/ckeditor.js')
'CKEDITOR_JS_URL': STATIC_URL + 'path_to_your/ckeditor.js')
}

.. _TinyMCE: http://www.tinymce.com/
Expand Down

0 comments on commit b7a3a2b

Please sign in to comment.