On 14 ต.ค. 2010, at 14:45, Sheena wrote:

> Hi all
> 
> I'm making a site in which users have access to a rich text editor
> implemented with tinyMCE. What I want to do with the result is turn it
> into an email and send it off.
> 
> I want to include a non-standard button and I was wondering if anyone
> can let me know how this can be achieved. The button should add an in-
> line image off the user's hdd. When a user chooses to send off the
> email I need all the images added in this way to be uploaded onto my
> server.

It sounds to me like what you're asking about is on the tinyMCE side of things, 
not Django's, and if so, this looks like what you're looking for:

http://tinymce.moxiecode.com/examples_im/example_01.php 

> I also want to have the option to add any attachment. So I want to
> have a button that when pressed allows the user to pick a file on
> their hdd and have it uploaded immediately, without loosing anything
> that's already filled in on the email form.

For non-images looks like you want this:

http://tinymce.moxiecode.com/examples_fm/example_01.php

> I'm a bit of a nube in terms of both Django and javascript so I hope
> it's not a silly request, I hope someone will at least be able to
> point me in the right direction.

On the server-side, once you've received the HTTP request with the uploaded 
file, you'll want to use the Django features described here:
http://docs.djangoproject.com/en/dev/topics/http/file-uploads/

Good luck!
Jonathan

-- 
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