PHP FCKeditor skin path problem?

Posted by TaG on Stack Overflow See other posts from Stack Overflow or by TaG
Published on 2010-03-30T07:03:47Z Indexed on 2010/03/30 7:23 UTC
Read the original article Hit count: 476

Filed under:
|

I can't seem to change the skin path using the FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ; form the http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/SkinPath tutorial. I get the following error listed below. How do I fix this?

Parse error: syntax error, unexpected '=' 

Here is the FCKeditor PHP code below.

<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '../../fckeditor/' ;
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
$oFCKeditor->Create() ;
?>

Here is the FCKeditor with the skin code.

<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = '../../fckeditor/' ;
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
$oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ;
$oFCKeditor->Create() ;
?>

Line 5 is giving me the problem.

© Stack Overflow or respective owner

Related posts about php

Related posts about fckeditor