Pages:

FCKeditor

reklam

Avatar: reklam

2009-09-28 07:42

I try to do as it is written in:

http://opensolution.org/Quick.Cms/docs/?id=tips#how_to_upload_wysiwyg_editor_-_fckeditor

I got this:

Parse error: syntax error, unexpected T_ELSE in plugins/edit/htmleditor.php on line 35

20 $aHtmlConfig['sName'] = $sName;
21 $aHtmlConfig['sContent'] = $sContent;
22
23 $oTpl =& TplParser::getInstance( );
24 $oTpl->setVariables( 'aHtmlConfig', $aHtmlConfig );
25
26 $oFCKeditor = new FCKeditor($sName) ;
27 $oFCKeditor->BasePath = 'fckeditor/';
28 $oFCKeditor->Value = $sContent;
29 $oFCKeditor->Width = $iW;
30 $oFCKeditor->Height = $iH;
31 return $oFCKeditor->CreateHtml();
32
33
34 }
35 else{
36
37 if( $sName == 'sDescriptionShort' )
38 return $oTpl->tbHtml( 'edit.tpl', 'TEXTAREA' );
39 else
40 return $oTpl->tbHtml( 'edit.tpl', 'EDIT' );
41 }
42 }

I think I missed something in the 4th steps.

I use FCKeditor 2.6.5.

Pages:
Back to top
about us | contact