You can skip directly to see the focus back
1, the test environment:
1. The back-end deployment based on Win10 + Wampserver64
2. debugging tools based Hbuilder
2, set up a test environment
- Download ueditor Source https://ueditor.baidu.com/website/download.html
2. After downloading the file decompression, php folder to the installation path of wampserver www / ueditor / folder
3. Start wampserver default start port is port 80 (the test was modified to 8080)
4, testing the background service is started successfully, open your browser and enter the address below, to get to the configuration file, indicating that the background service is started successfully.
http://127.0.0.1:8080/ueditor/php/controller.php?action=config#
3, based debugging Hbuilder
1. In decompression ueditor Hbuilder source after opening, the directory structure is as follows:
Key 1: Modify ueditor.config.js will serverUrl to the address of your own server:
serverUrl: "http://127.0.0.1:8080/ueditor/" + "php/controller.php"
Key 2: Modify D: \ wamp64 \ www \ ueditor \ php \ config.json configuration picture access path prefix, both involving the prefix plus: http: //127.0.0.1: 8080
Priority 3: Modify D: \ wamp64 \ www \ ueditor \ php \ controller.php Cancel notes below, will http://www.baidu.com changed to *
header('Access-Control-Allow-Origin: *'); //设置允许跨域访问
header('Access-Control-Allow-Headers: X-Requested-With,X_Requested_With'); //设置允许的跨域header
4, test shots.
Upload:
echo:
Reference: http://fex.baidu.com/ueditor/
Reproduced in: https: //my.oschina.net/zhenggao/blog/3056642