开发者

PHP FCKeditor skin path problem?

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.BasePa开发者_如何学JAVAth + '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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜