![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMKSJJQGu4H6tWmSPxPKI_gZpM2daF6vE10hju1TMMM_V2im4YUptnXIfFfvfX1yFE1WYSYs_7fWihnxq_2pfbWcsxtZXajbbsFe9jPqXZOwbyw6JvqF1Yj3rYc0tqFvuiX9fpXa8P5PJ8/s320/5-19-2010+2-21-50+PM.png)
Mapping: http://huypv/ - /srv/www/huypv
Download from http://ckeditor.com/
Extract
+ ckeditor/
Create
+ editor.html
+ sever.php
+ browse.php
Key to code (JS - onclick): window.opener.CKEDITOR.tools.callFunction(getParamFromUrl('CKEditorFuncNum'), choosedFileUrl); window.close();
+ upload.php
Key to code (PHP - end script): window.parent.CKEDITOR.tools.callFunction($_GET['CKEditorFuncNum'], $uploadedFileUrl, $errorMessageWillBeAlerted);
- edit ckeditor/config.js
config.filebrowserImageBrowseUrl = '/browse.php';
config.filebrowserImageUploadUrl = '/upload.php';
config.entities_latin = false;
Test submit: http://huypv/editor.html [POST] http://huypv/server.php
Test upload image: Click image button on toolbar.