tags:

views:

219

answers:

1

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/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;' ;
$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/"&gt;FCKeditor&lt;/a&gt;.&lt;/p&gt;' ;
$oFCKeditor->Create() ;
?>

Line 5 is giving me the problem.

A: 

You are using the Javascript syntax, but you must use the PHP integration: http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP

AlfonsoML