- 论坛徽章:
- 0
|
- //包含文件
- 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 |
|