• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter & TinyMCE browse and select uploaded images

#1
[eluser]Lykos22[/eluser]
Hi I'd like some help please.

I have a form where I can create posts and I have installed TinyMCE 4 as my wysiwyg editor. What I'd like to do is to add some more functionality to my posts and basicly to add the option if inserting a new image or images embeded with my content something like this
Code:
<p>
<img src="uploads/posts/image1.jpg" >
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus semper vulputate dui non mattis.
Aliquam lobortis faucibus massa, sit amet porta erat varius et.<p>

<img src="uploads/posts/image2.jpg" >
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus semper vulputate dui non mattis.
Aliquam lobortis faucibus massa, sit amet porta erat varius et.<p>


What I thought to do is to create a secondary form where I can upload an image/images to my uploads/posts folder using the File Uploading and Image Manipulation Classes and then on my main form (create posts) click the "Insert image" button on TinyMCE's toolbar to browse the uploads folder and pick the images. Something quite similar to what Wordpress does.

I haven't done this before (browsing through tinymce to get the images and the path) so could you help me on how should I properly do that?

Thanks in advance.

#2
[eluser]Lykos22[/eluser]
I have found this file manager, which from what I've read can do what I want. The problem Is I don't know how can I set it with CodeIgniter, do I need to do any configurations?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.