summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Maliński <riklaunim@gmail.com>2015-06-06 07:40:41 (GMT)
committerPiotr Maliński <riklaunim@gmail.com>2015-06-06 07:40:41 (GMT)
commitbb3588312aa21a41580ca31a7b403f03ec452c36 (patch)
treed500869bc24680109b18a982bd94c3f0bb80aa93
parent6c295e6cb74eef80fdc90fcb7a74301995e04f65 (diff)
parentc14353a0a227407f41998d02d51bc71a3d9928ee (diff)
downloaddjango-ckeditor-bb3588312aa21a41580ca31a7b403f03ec452c36.zip
django-ckeditor-bb3588312aa21a41580ca31a7b403f03ec452c36.tar.gz
django-ckeditor-bb3588312aa21a41580ca31a7b403f03ec452c36.tar.bz2
Merge pull request #196 from Visgean/patch-2
Loading form media section
-rw-r--r--README.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 92845de..b2a758d 100644
--- a/README.rst
+++ b/README.rst
@@ -136,7 +136,10 @@ Alernatively you can use the included ``CKEditorWidget`` as the widget for a for
admin.site.register(Post, PostAdmin)
-Note that when using outside of admin panel you will have to make sure all form media is present for the editor to work. You may have to render the media like so::
+Outside of django admin
+~~~~~~~~~~~~~~~~~~~~~~~
+
+When you are rendering form outside of admin panel you will have to make sure that all form media is present for the editor to work. One of the way how to achieve this is following::
<form>
{{ myform.media }}
@@ -144,6 +147,12 @@ Note that when using outside of admin panel you will have to make sure all form
<input type="submit"/>
</form>
+or you can load the media manually at it is done in demo app::
+
+ {% load staticfiles %}
+ <script type="text/javascript" src="{% static "ckeditor/ckeditor/ckeditor.js" %}"></script>
+ <script type="text/javascript" src="{% static "ckeditor/ckeditor-init.js" %}"></script>
+
Management Commands