PHP FCKeditor皮肤路径问题?

时间:2010-03-30 07:03:48

标签: php fckeditor

我似乎无法使用FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;形式http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/SkinPath教程更改皮肤路径。我收到以下错误列表。我该如何解决这个问题?

Parse error: syntax error, unexpected '=' 

以下是FCKeditor PHP代码。

<?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() ;
?>

这是带有皮肤代码的FCKeditor。

<?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() ;
?>

第5行给我的问题。

1 个答案:

答案 0 :(得分:0)

您使用的是Javascript语法,但必须使用PHP集成:http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP

相关问题