我似乎不能使用http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/SkinPath教程中的FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;来更改皮肤路径。我得到下面列出的错误。我该如何解决这个问题?
Parse error: syntax error, unexpected '=' 这是下面的FCKeditor代码。
<?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行给了我这个问题。
发布于 2010-03-31 03:07:26
您正在使用Javascript语法,但您必须使用PHP集成:http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP
https://stackoverflow.com/questions/2543383
复制相似问题