View Full Version : How can a separate "upload image" field be added to richtext editor?

05-27-2008, 03:28 AM
How can a separate "upload image" field/form be added to this script http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm so that as soon as the image is uploaded it gets shown in the textarea box ?

<form name="image-upload" enctype="multipart/form-data" action="" method="post">
<input type="file" name="image">
<input name="Submit" type="submit" value="image"></form>

05-27-2008, 03:34 AM
Why do you need a separate upload form? Doesn't the "add image" utility work for you? It sounds to me like you're just replicating that, but don't understand why you would.

05-27-2008, 03:57 AM
The add image lets you add an url, but not have an easy direct upload from your computer. Have a look at this [pmed you the link] , and just upload an image ( see lower part of the page) but do not submit the form.

Apart from my needs, it beats me how they do it. * Scratches head *