ผมใช้ ckediter แต่เวลาจะอัพโหลดรูปนี้ต้องควบคุมยังไงอ่ะครับ ว่าให้ไปเก็บไฟล์ที่ไหนอ่ะครับ
ckeditor ปกติ อัปโหลดไม่ได้ครับ
ถ้าจะอัปโหลด ต้อง ติดตั้ง ckfinder ร่วมด้วย ครับ
ถ้าจะอัปโหลด ต้อง ติดตั้ง ckfinder ร่วมด้วย ครับ
อ้าวเหรอครับ แล้วถ้าเป็น FCK อ่ะครับ กำหนดยังไงอ่ะ เคยทำแต่ ASP.NEt อ่ะ ส่วน การเรียกใช้ โดยใช้ Php ไม่เคยเขียนอ่ะ ขอคำแนะนำด้วยครับ
จริงๆแล้วมันก็วิธีเดียวกันกับ asp แหละ ที่ไฟล์ชื่อเดียวกันแต่เป็น php
สังเดตที่ชื่อตัวแปร ครับ
fckeditor\editor\filemanager\connectors\php\config.php
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;
สังเดตที่ชื่อตัวแปร ครับ
fckeditor\editor\filemanager\connectors\php\config.php
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/userfiles/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '' ;