Hi, I've been trying to use TinyMCE in my admin pages, I've followed
this tutorial but so far have had no luck.

http://code.djangoproject.com/wiki/AddWYSIWYGEditor

I tried using this method (http://beshrkayali.com/posts/4/) , that
incoporates the Javascript directly into the templates and that works
fine. But I want to get it to work through the models.py file. This is
my models.py:

class Post(models.Model):
    prepopulated_fields = {"post_slug": ("post_title", )}

   #model fields

    def __unicode__(self):
        return self.post_title

    def get_absolute_url(self):
        return "/blog/%s/" % self.post_slug

    class Admin:
          js = (
                'tiny_mce/tiny_mce.js',
                'js/textareas.js',
            )

these paths start in my media directory as specified in settings.py,
so I can go to myurl.com/media/js/textarea.js and see the files.

The other thing i noticed is that if I view source for the admin files
there is no mention of any javascript, so I thought maybe it wasn't
the paths, but something else, maybe something wrong with the class
admin.

I'd appreciate any suggestions,

thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to