[轉]HOW TO MAKE UPLOAD IMAGE IN CKEDITOR.
http://www.dukaweb.net/2014/01/how-to-make-upload-image-in-ckeditor.html In script tag, which we call CKEditor put one more code: CKEDITOR.replace( ’editor1’, { filebrowserUploadUrl: “upload/upload.php” } ); In upload.php if (file\_exists("img/"; . $\_FILES\["upload"\]\["name"\])) { echo $\_FILES\["upload"\]\["name"\] . " already exists please choose another image."; } else { move\_uploaded\_file($\_FILES\["upload"\]\["tmp\_name"\], "img/" . $\_FILES\["upload"\]\["name"\]); echo "Stored in: " . "img/" . $\_FILES\["upload"\]\["name"\]; } If you get an error “image source url is missing“, that means the url of the image doesn’t pass to the image info tab, you can fix this error by adding the php code to pass the image url. ...