Welcome Guest, Not a member yet? Register   Sign In
can't get FCKeditor to work
#1

[eluser]chrisdaems[/eluser]
I'm trying out the FCKeditor but I can't get it to work. I followed every step as described in the wiki, but I keep getting errors. This is my current error.

Code:
Fatal error: Class 'Fckeditor' not found in C:\wamp\www\organizations\system\libraries\Loader.php on line 814

I checked and I'm pretty sure that all files are in the correct place. I also renamed the the class fckeditor to Fckeditor together with the filename (as described in the wiki).

I have tried the demo and the FCKeditor looks great, but I prefer an editor as the one on this page. Isn't there anything that looks like the one used in this forum?

Thanks,
Chris
#2

[eluser]Unknown[/eluser]
Hi Chris,

I think something wrong with Fckeditor class.
You need to check some points following:

1. file Fckeditor is in "application/libararies"
2. In file Fckeditor, have you changed
Code:
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 ) ;
    }

        function Create()
    {
        echo $this->CreateHtml() ;
    }

    function CreateHtml()
    {
        ....
        }
    .....

3. Change $this->BasePath in __contruct to the directory you put fckeditor (the path starts from CI index.php)
Code:
function __construct( $instanceName )
     {
        $this->InstanceName    = $instanceName ;
        $this->BasePath        = '/fckeditor/' ;

Hope these help

tcvn




Theme © iAndrew 2016 - Forum software by © MyBB