关于ucenter添加fckeditor 出现空白

studyhk 2011-08-07 12:25:16
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 下也如此,,请问是我引用路径错误吗?如果是那要怎么引入?
...全文
108 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
studyhk 2011-08-23
  • 打赏
  • 举报
回复
已解决 路径问题 用firebug分析下很快就可以设置出正确路径
hqaht 2011-08-16
  • 打赏
  • 举报
回复
看一下apache错误日志
$oFCKeditor 打印一下这个对象,如果这个对象存在说明文件引入没问题。
dingqin001 2011-08-11
  • 打赏
  • 举报
回复
我也有这个问题,不知道怎么解决

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧