Gloria wrote: > Hi there. I found this nifty when I searched for Django and Dojo: > > http://code.djangoproject.com/wiki/AddDojoEditor > > The thread on this link is closed, so I am starting a new one. > > Please explain how I invoke this code. I am fairly new to Django, and > I've avoided javascript like the plague over the years, but I > understand the constructs. > > This example explains the model and the media interface. But how do I > invoke this piece of js code from within my view? > > Thanks for tolerating neophyte questions here. >
hi, that webpage is explaining how to add Editor2 to the django-admin-application (the one that's usuallay at http://foo.com/admin). if you want to add it to your own code, then simply read the documentation on the dojo 'side', and act accordingly. it does not have to do anything with django. for example, simply adjust your html-template to be suitable for the Editor2 widget, and all should work. no changes to the django-views should be necessary. if it does not work, just come back here, show us the non-working code, and we'll help (if we can) :) gabor --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---