CodeIgniter Forums
how to add image in articles when uploaded via textarea ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: how to add image in articles when uploaded via textarea ? (/thread-31553.html)



how to add image in articles when uploaded via textarea ? - El Forum - 06-23-2010

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


how to add image in articles when uploaded via textarea ? - El Forum - 06-23-2010

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


how to add image in articles when uploaded via textarea ? - El Forum - 06-23-2010

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


how to add image in articles when uploaded via textarea ? - El Forum - 06-23-2010

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


how to add image in articles when uploaded via textarea ? - El Forum - 06-24-2010

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


how to add image in articles when uploaded via textarea ? - El Forum - 06-24-2010

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


how to add image in articles when uploaded via textarea ? - El Forum - 06-24-2010

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