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

[eluser]j0hn[/eluser]
how can i integrate fckeditor in CI 1.5.x? i found a thread regarding fckeditor integration but it doesn't
work.

can anyone help me how to integrate this tool. thanks!
#2

[eluser]nirbhab[/eluser]
hi, i have worked on fckeditor few days back, the instructions given in the wiki worked perfectly fine, please mention your problem with more details.
#3

[eluser]j0hn[/eluser]
instead using this code as stated in the tutorial:
Code:
if (!defined('BASEPATH')) exit('No direct script access allowed');
<?php
if ( version_compare( phpversion(), '5', '<' ) )
    include_once( 'fckeditor_php4.php' ) ;
else
    include_once( 'fckeditor_php5.php' ) ;

?&gt;

i use this because im using C.I. version 1.5.x
Code:
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Fckeditor
{
    var $InstanceName ;
    var $BasePath ;
    var $Width ;
    var $Height ;
    var $ToolbarSet ;
    var $Value ;
    var $Config ;

    // PHP 5 Constructor (by Marcus Bointon <[email protected]>)
    function __construct( $instanceName )
     {
        $this->InstanceName    = $instanceName ;
        $this->BasePath        = '/fckeditor/' ;
        $this->Width        = '100%' ;
        $this->Height        = '200' ;
        $this->ToolbarSet    = 'Default' ;
        $this->Value        = '' ;
        $this->Config        = array() ;
    }

// PHP 4 Contructor
    function Fckeditor( $instanceName )
    {
        $this->__construct( $instanceName ) ;
    }

but it seems this code is not complete.. if so, i don't have any idea how to complete this.

what should i do to make fckeditor work?
#4

[eluser]WeeJames[/eluser]
I just did

Code:
include("FCKeditor/fckeditor.php");

then dropped in

Code:
$oFCKeditor = new FCKeditor('postbody');
        $oFCKeditor->BasePath = base_url() . 'FCKeditor/';
        $oFCKeditor->Value = '';
        $oFCKeditor->Height = 400;
        $oFCKeditor->Width = 700;
        $oFCKeditor->Create();

where i needed it.




Theme © iAndrew 2016 - Forum software by © MyBB