Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit e080a82

Browse files
committed
1 parent 8cd4f74 commit e080a82

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/INSTALL.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232

3333
CKEDITOR_JQUERY_URL = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js'
3434

35+
9. CKEditor needs to know where its assets are located because it loads them lazily only when needed. The location is determined by looking at a script tag which includes a URL ending in ``ckeditor.js``. This does not work all the time, for example when using ``ManifestStaticFilesStorage``, any asset packaging pipeline or whatnot. django-ckeditor is quite good at automatically detecting the correct place even then, but sometimes you have to hardcode ``CKEDITOR_BASEPATH`` somewhere. It is recommended to override the ``admin/base_site.html`` template with your own, i.e.::
36+
37+
{% extends "admin/base_site.html" %}
38+
39+
{% block extrahead %}
40+
<script>window.CKEDITOR_BASEPATH = '/static/ckeditor/ckeditor/';</script>
41+
{{ block.super }}
42+
{% endblock %}
43+
3544

3645
## Optional
3746

0 commit comments

Comments
 (0)