Welcome Guest, Not a member yet? Register   Sign In
Installing / Integrate FCKEditor as form_helper extension.
#30

[eluser]Josepzin[/eluser]
I have used this in CI 1.7, but i do same changes...

I want to load the fckeditor ONLY when i use it, then i have created a independent helper into my application.

I have used the 3 steps from the begin of this post, but i do same modifications...

Step 1. Copy the FCKeditor files into my aplication plugins folder: application\plugins\fckeditor

Step 2.
In my config.php i have changed this line from the original:
Code:
$config['fckeditor_basepath'] = 'application/plugins/fckeditor/'; // without the first "/"

Step 3. I have created a helper fckeditor_helper.php in my aplication helper folder: application\helpers\fckeditor_helper.php
And i have changed this line:
Code:
// require_once( $_SERVER["DOCUMENT_ROOT"] . $fckeditor_basepath. 'fckeditor.php' ); <<<< BEFORE
require_once( $fckeditor_basepath. 'fckeditor.php' ); // <<<< AFTER

Becouse my web is in a subfolfer, and all my webs are in subfolders when are in my local computer. ej: http://localhost/proyect1, http://localhost/proyect2, etc...

Usage: Add in the controller:
Code:
$this->load->helper('fckeditor');


Messages In This Thread
Installing / Integrate FCKEditor as form_helper extension. - by El Forum - 02-26-2009, 07:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB