Saturday, July 27, 2013

tinymce

Hello,
I am not able to use the tinymce editor in my flat pages.
My tinymce is in this dir:
C:\Users\Kakar\Downloads\Compressed\tinymce\js\tinymce\tinymce.min.js

And in my template dir i have another admin folder for 'change_form.html', just below this line:

<script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>

i have added this line for tiymce:

<script type="text/javascript" src="/tinymce.min.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode: "textareas",
theme: "simple"
});
</script>

In my urls.py, i have added:

(r'^tiny_mce/(?P<path>.*)$', 'django.views.static.serve', {'document_root':'C:/Users/Kakar/Downloads/Compressed/tinymce/js/tinymce'}),

Please, point me out, where am doing wrong. I am learning from a book 'Practical Django Projects'.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment