- 論壇徽章:
- 0
|
- //包含文件
- require_once('../include/ckeditor/ckeditor.php');
- //創(chuàng)建文本框
- $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", '');
復(fù)制代碼 我在本地的apache上測(cè)試是正確的,但是一傳到線上就不對(duì)了,提示CKEDITOR is not defined
代碼結(jié)構(gòu)是
/
/include/ckeditor
/test/a.php |
|