Tuesday, September 12, 2006

use FCKeditor as Quick.CMS's default html editor

I don't like Quick.CMS's simple html editor. On their website I found an artile "How to upload editor FCKeditor" .
just download and unpack fckeditor to Quick.CMS's directory, and edit admin.php(maybe your change this filename for security reason), add the given line:

require_once ( 'FCKeditor/fckeditor.php' );

then edit plugins/edit/htmleditor.php, replace the function htmlEditor() on:

function htmlEditor( $sName = 'tresc', $iH = '300', $iW = '400', $sContent = '' ) {
$oFCKeditor = new FCKeditor($sName) ;
$oFCKeditor->BasePath = 'FCKeditor/';
$oFCKeditor->Value = $sContent;
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = $iH;
return $oFCKeditor->CreateHtml();
}

Now the admin interface look like:

1 comment:

Gürkan said...

thank you for your increadible information. :)