You are including the tiny_mce library after you reference it.  Try
switching the order to:

        js = (
            '/app_media/tiny_mce/tiny_mce.js',
            '/app_media/textareas.js',
            )

On Sep 3, 10:50 am, bin <[EMAIL PROTECTED]> wrote:
> Hi all
>
> i wanna embed a richtext field in my admin textfield.
> today, i try to use tiny mce. but no matter whatever i did, it didnt
> show up.
>
> i created a directory in my project folder, named appmedia, and copied
> the tiny mce files and textareas.js into it.
> this is my urls.py
>
>     (r'^app_media/(?P<path>.*)$',\
>      'django.views.static.serve',\
>      {'document_root': './appmedia'}),
>
> textareas.js:
> tinyMCE.init({
> mode : “textareas”,
> theme : “advanced”
>
> });
>
> In my models.py:
> class test(models.Model):
>     #Fields
>     class Admin:
>         js = (
>             '/app_media/textareas.js',
>             '/app_media/tiny_mce/tiny_mce.js',
>             )
>
> all this done, nothing changed in my admin test's textfield, i dont
> know why, who could help out...
>
> when i put the url in my 
> explorer:http://localhost:8000/app_media/textareas.js,
> andhttp://localhost:8000/app_media/tiny_mce/tiny_mce.js, it can
> locate the files, i think it's nothing about the urls, so, what's the
> problem.
>
> thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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