首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PHP FCKeditor皮肤路径问题?

PHP FCKeditor皮肤路径问题?
EN

Stack Overflow用户
提问于 2010-03-30 15:03:48
回答 1查看 1.3K关注 0票数 1

我似乎不能使用http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/SkinPath教程中的FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;来更改皮肤路径。我得到下面列出的错误。我该如何解决这个问题?

代码语言:javascript
复制
Parse error: syntax error, unexpected '=' 

这是下面的FCKeditor代码。

代码语言:javascript
复制
<?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。

代码语言:javascript
复制
<?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行给了我这个问题。

EN

回答 1

Stack Overflow用户

发布于 2010-03-31 03:07:26

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2543383

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档