+ -
当前位置:首页 → 问答吧 → 关于ucenter添加fckeditor 出现空白

关于ucenter添加fckeditor 出现空白

时间:2011-08-07

来源:互联网

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 下也如此,,请问是我引用路径错误吗?如果是那要怎么引入?

作者: studyhk   发布时间: 2011-08-07

我也有这个问题,不知道怎么解决

作者: dingqin001   发布时间: 2011-08-11