Saturday, July 27, 2013

flatpages-tinymce

Hello,
I am trying to use tinymce in the flat pages. But i just can't show it up in my admin. Please help me out where am going wrong.

The javascript file is in:

C:\Users\Kakar\web\cms\static\js\tinymce\tinymce.min.js

urls.py:

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

In my templates dir i have another admin folder, which have the change_form.html, and right after {{ media }}:

    <script type="text/javascript" src="/tinymce.min.js"></script>      <script type="text/javascript">      tinyMCE.init({      mode: "textareas",      theme: "simple"      });      </script>
Please help me out. 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