Because I want to keep my framework flexible and I don't want to touch the original files of FCKEditor I want to extend the class.
Simple, as I thought:
Now when I do this, I get alot of Javascript errors, I DO see the topbar of the editor but not the text area.
I cannot figure out what is wrong with it...
Simple, as I thought:
<?php
require("fckeditor.php");
class Editor extends FCKeditor
{
function Editor()
{
$this->Height = '100';
$this->Width = '100%';
}
}
$oFCKeditor = new Editor('FCKeditor1');
echo $oFCKeditor->CreateHTML();
?>
Now when I do this, I get alot of Javascript errors, I DO see the topbar of the editor but not the text area.
I cannot figure out what is wrong with it...

Re: Extending the class
<?php require("fckeditor.php"); class Editor extends FCKeditor { function Editor($InstanceName) { $this->InstanceName = $InstanceName; $this->BasePath = "/framework/js/"; $this->Height = '200'; $this->Width = '100%'; $this->Config['SmileyPath'] = '/framework/images/smilies/'; $this->Config['SmileyImages'] = ''; $this->Config['UseBROnCarriageReturn'] = true; } } ?>