eureka101v / ueditor-thinkphp Goto Github PK
View Code? Open in Web Editor NEWUeditor for thinkphp插件
Ueditor for thinkphp插件
sae开启防盗链后上传图片经常不能正确显示.返回结果302.谁遇到了??
在输出后面加上exit(); 应该就可以防止trace信息输出了吧
//ueditor编辑器配置
public function ueditor(){
$data = new \Org\Util\Ueditor();
echo $data->output();
exit(); // 防止调试信息输出
}
如果我不使用新浪的SVN请问应该怎么操作呢?
我这边的开发环境是一个反向代理加一个虚拟目录
nginx配置为
location /wxapi {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'OPTION, POST, GET';
add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type, x_requested_with';
proxy_pass http://localhost:8000/wxapi/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_max_temp_file_size 0;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
}
apache配置为listen 8000
<IfModule>
Alias /wxapi "/home/warjiang/www/wechat"
</IfModule>
你这边提供的Ueditor.class.php下面的listFile函数中,对于$rootpath获得获取存在问题
// Vin\FileStorage\Driver下的listFile 函数 你获取$rootpath的方式为
$path = $_SERVER['DOCUMENT_ROOT'].__ROOT__.$rootpath.$path;
如果按照反向代理的方式去获取,得到的真正路径是有问题的,原因还是在于虚拟目录的设置,建议这边获取$path的方式修改为$path = $rootpath.$path;
对于$rootpath获取的思路为,利用TP的THINK_PATH
,
通过$rootpath = str_replace('/ThinkPHP/',$this->rootpath,$rootpath);
,对于虚拟目录的情况也是可以获取到真正的路径参数.
代码下载后,发现svn文件没有删除~
我按照你的提示完全配置了,但是点击多图上传时就会出现这个错误(“后端配置项没有正常加载,上传插件不能正常使用!”),单图上传也实现不了,同时console中报这个错误(“Uncaught ReferenceError: ZeroClipboard is not defined”)。
不知道是哪里的问题?求帮助。
Ueditor.class.php private function getFullPath($path)
插件里面跟ueditor 源码内容不一致,导致{time}{rand}没有被替换
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.