我似乎无法使用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行给我的问题。
答案 0 :(得分:0)
您使用的是Javascript语法,但必须使用PHP集成:http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP