Chinaunix
标题:
大家帮我看看ckeditor这样调用有问题么?
[打印本页]
作者:
t6760915
时间:
2010-06-04 18:03
标题:
大家帮我看看ckeditor这样调用有问题么?
//包含文件
require_once('../include/ckeditor/ckeditor.php');
//创建文本框
$fckeditorObj = new CKEditor() ;
$fckeditorObj->BasePath = '/include/ckeditor/';
$fckeditorObj->config['toolbar'] = array(array( 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'FontSize' ),array( 'Link', 'Unlink', 'Image', 'Flash', 'Smiley' ));
$fckeditorObj->config['Width'] = 600;
$fckeditorObj->config['Height'] = 200;
$fckeditorObj->editor("content", '');
复制代码
我在本地的apache上测试是正确的,但是一传到线上就不对了,提示CKEDITOR is not defined
代码结构是
/
/include/ckeditor
/test/a.php
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2