Home >Backend Development >PHP Tutorial >关于ucenter添加fckeditor 出现空白,该怎么处理

关于ucenter添加fckeditor 出现空白,该怎么处理

WBOY
WBOYOriginal
2016-06-13 09:59:04880browse

关于ucenter添加fckeditor 出现空白
ucenter目录结构 根目录下有
admin
  tpl //admin里的模板目录
  admincp_gamenews.php //引入fckeditor目录,下面会贴出引用代码
fckeditor //fckeditor目录
  fckeditor.php



admincp_gamenews.php引用fckeditor代码如下
define('S_ROOT', dirname(__FILE__).DIRECTORY_SEPARATOR); //位于common.php文件中
include_once(S_ROOT.'/fckeditor/fckeditor.php');//加载FCKeditor文件
$oFCKeditor = new FCKeditor('CreMer');//创建一个FCKeditor对象 ID为FCKeditor1 
$oFCKeditor ->BasePath = S_ROOT.'/fckeditor/';//设置FCKeditor路径 
$oFCKeditor ->Valude = 'this is a default content';//设置默认值 
//工具按钮设置 
$oFCkeditor->ToolbarSet='Default'; 
//设置它的宽度 
$oFCKeditor->Width='838px'; 
//设置它的高度 
$oFCKeditor->Height='300px'; 
$fck=$oFCKeditor->CreateHtml();


在模板引入后,firefox下高度显示打不开程序地址,本该有fckeditor一片空白,IE 下也如此,,请问是我引用路径错误吗?如果是那要怎么引入?


------解决方案--------------------
我也有这个问题,不知道怎么解决
------解决方案--------------------
看一下apache错误日志
$oFCKeditor 打印一下这个对象,如果这个对象存在说明文件引入没问题。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn