CKEditor คืออะไร มันก็คือรุ่นน้องของ FCKeditor ครับที่ถูกพัฒนาต่อยอดขึ้นไปอีกเพราะเนื่องจาก FCKeditor เขาจะไม่พัฒนาต่อแล้ว ส่วน CKFinder ก็คือตัวอัพโหลดรูปเหมือนกับ IMCE ครับ สำหรับเว็บไซต์ drupal แล้วเรามาเปลี่ยนเป็น CKeditor กันดีกว่า
ขั้นตอนการติดตั้ง
1. โหลด module ckeditor มาก่อน http://drupal.org/project/ckeditor
2. โหลด ckeditor มา http://ckeditor.com/download
3. โหลด ckfinder มา http://ckfinder.com/download
4. จากนั้นทำการติดตั้ง module ckeditor จากข้อ 1. ก่อนครับลงใน drupal ของเรา
5. แตกไฟล์ ckeditor ที่ได้มากจากข้อ 2. ลงในตัว module ckeditor โดยไว้ที่ modules/ckeditor/ckeditor ซึ่งไฟล์ข้างในจะมีบอกว่า COPY_HERE.txt
6. แตกไฟล์ ckfinder ในข้อ 3. ลงใน modules/ckeditor/
7. ทำการแก้ไขไฟล์ modules/ckeditor/ckfinder/config.php แล้วลบโค็ดด้านล่างออก
function CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
...
return false;
}
จากนั้นหา$baseUrl = '/ckfinder/userfiles/';
แก้ให้เป็นตาม path ของ server ที่ใช้งานจริงเช่น$baseUrl = '/var/www/html/sites/default/module/ckeditor/ckfinder/userfiles/';
และเพิ่มrequire_once '../../../../includes/filemanager.config.php';
ในบรรทัดถัดไปจาก$baseDir = resolveUrl($baseUrl);
เสร็จแล้วทำการบันทึกครับ modules/ckeditor/ckfinder/config.php
8. ต่อมาให้ทำการแก้ไขไฟล์ sites/default/settings.php โดยเอา # ออกและใส่ url เว็บไซต์เราลงไป
$cookie_domain = 'www.snappytux.com';
9. เปิดการใช้งาน module
10. จากนั้นไปที่ User management > Permissions เปิดสิทธิ์การใช้งาน upload
11. จากนั้นไปการตั้งค่า Ckeditor ทำการแก้ไข profile และดูในส่วนของ File browser settings ให้เราเลือก File browser type เป็น Ckfinder
thank : http://drupal.org/node/728210