CodeIgniter Forums

Full Version: how to add image in articles when uploaded via textarea ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]dhaulagiri[/eluser]
how to add image in articles when uploaded via textarea ? Is it possible with editors such as tinymce or YUI ?

El Forum

[eluser]Sayian[/eluser]
Uh,

Unless I'm mistaken on some sort of ajax / yui methods or abilities .. I do believe that the only way to upload a file is still using a file input tag.

Textarea does not support image uploads.

If I'm wrong, feel free to correct me.

El Forum

[eluser]mi6crazyheart[/eluser]
@dhaulagiri
Agree with "Sayian"...
I don't think so, "Textarea" support any image upload features...

El Forum

[eluser]Mareshal[/eluser]
Maybe it is possible, but try using input and add the tag to select more than one file. Just like flickr.

El Forum

[eluser]mlinuxgada[/eluser]
tinymce with tinybrowser ... it's very easy to implement.

El Forum

[eluser]Ivar89[/eluser]
replace textarea with an editor(fck/cke editor) it will upload to.

El Forum

[eluser]Narkboy[/eluser]
If you don't want to impliment something like TinyMCE then you can use an Ajax file upload field to upload the images and drop an image tag into the text upload. That way, when the text is displayed, it will load the image from it's storage folder. I'd use AJAX to upload the files to make it quicker and more intuitive.

Personally, I say go with TinyMCE - it's a god-send!