Welcome Guest, Not a member yet? Register   Sign In
FCKeditor integration
#1

[eluser]Alexandru M.[/eluser]
Hy!
I have already completed several websites written entirely in codeigniter and using TinyMCE as a backend page editor.
Now I got a new project where the customer wants to be able to upload images and arrange them in a WYSIWYG editor , and I found CKEditor , however the upload plugin is not available in the free one . Doing some googling I found that FCKEditor has it by default , so I downloaded it.
I have it on my root folder , and I have the JS included in all my views , and it is working as a text editor.Some more googling and I enabled the upload / file manager , and I can now upload files , only problem is that I need to rewrite the file names when I select them like this :
Code:
http://localhost/uploads/images/img.jpg
becomes
Code:
{BASE_URL}/uploads/images/img.jpg
The {BASE_URL} is then replaced in my hooks to become the base path of the application.
Any suggestions ?
#2

[eluser]Georgi Budinov[/eluser]
Well if you do that ... the images will not be viewable in the CKEditor, just in the frontend after the replacement.

If I understand right ... this would be a problem. So it is better to setup something like assets folder for the filemanager in the root folder for example and upload images there. This way no need to replace stuff and do magic.
#3

[eluser]Alexandru M.[/eluser]
Thanks , I have just finish solving my problem . I found TinyMCE complete with an Ajax uploader and file manager , and it became a simple problem of doing a couple of str_replace's before inserting in the database.

The download is available here :
http://www.phpletter.com/Demo/Tinymce-Aj...e-Manager/

What I did was extract it to my base url , chmod the uploads folder , include the js on my page and copy + paste some code from the demo that came in the archive on my base_template.

It works great so far , if anyone wants to use it too , feel free to PM me for assistance!
#4

[eluser]umefarooq[/eluser]
Hi if you are trying tinymce then try tinybrowser also nice plugin for tinymce, you can also try tinymce plugin media manager build on CI tinycimm really easy to integrate and what you are looking for

http://code.google.com/p/tinycimm/

for tinybrowser just search in google
#5

[eluser]Alexandru M.[/eluser]
Thanks a lot, I'll give it a try in my next project , for the current one the AjaxFileManager will suffice , and I am also running out of time , deadline is pretty soon Smile ...




Theme © iAndrew 2016 - Forum software by © MyBB