>  기사  >  백엔드 개발  >  关于ucenter添加fckeditor 出现空白,该怎么处理

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

WBOY
WBOY원래의
2016-06-13 09:59:04836검색

关于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 打印一下这个对象,如果这个对象存在说明文件引入没问题。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.