Chinaunix

标题: 大家帮我看看ckeditor这样调用有问题么? [打印本页]

作者: t6760915    时间: 2010-06-04 18:03
标题: 大家帮我看看ckeditor这样调用有问题么?
  1.                 //包含文件
  2.                 require_once('../include/ckeditor/ckeditor.php');

  3.                 //创建文本框
  4.                 $fckeditorObj = new CKEditor() ;
  5.                 $fckeditorObj->BasePath = '/include/ckeditor/';
  6.                 $fckeditorObj->config['toolbar'] = array(array( 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'FontSize' ),array( 'Link', 'Unlink', 'Image', 'Flash', 'Smiley' ));
  7.                 $fckeditorObj->config['Width'] = 600;
  8.                 $fckeditorObj->config['Height'] = 200;
  9.                                 $fckeditorObj->editor("content", '');
复制代码
我在本地的apache上测试是正确的,但是一传到线上就不对了,提示CKEDITOR is not defined


代码结构是
/
/include/ckeditor
/test/a.php




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2