Trying to get TinyMCE to work on Admin area of the model and flat 
template pages.
This what I have so far.  But I am not getting the TinyMCE textarea 
for admin
or for template field form.description in product_form.html.  Thank 
You in advance.

Django TinyMCE setup in admin model

class Product(models.Model):
    id = models.AutoField(primary_key=True)
    category_id = models.ForeignKey(Category)
        name = models.CharField(maxlength=200)
        description = models.TextField()

    class Admin:
        # various admin options are here
        js = (
                'js/tiny_mce/tiny_mce.js',
                'js/tiny_mce/textareas.js',
            )

Django TinyMCE in Template pages

{% extends "base.html" %}

{% block content %}
<script type="text/javascript" src="/media/js/tiny_mce/tiny_mce.js"></
script>
<script type="text/javascript" src="/media/js/tiny_mce/textareas.js"></
script>

<p>
    <label for="id_description">Description:</label> 
{{ form.description }}
    {% if form.description.errors %}*** {{ form.description.errors|
join:", " }}{% endif %}
</p>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to