Code Monkey home page Code Monkey logo

ueditor-thinkphp's People

Contributors

eureka101v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ueditor-thinkphp's Issues

兼容trace

在输出后面加上exit(); 应该就可以防止trace信息输出了吧

//ueditor编辑器配置
public function ueditor(){
$data = new \Org\Util\Ueditor();
echo $data->output();
exit(); // 防止调试信息输出
}

反向代理路径问题

我这边的开发环境是一个反向代理加一个虚拟目录
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);,对于虚拟目录的情况也是可以获取到真正的路径参数.

后端配置项没有正常加载,上传插件不能正常使用!

我按照你的提示完全配置了,但是点击多图上传时就会出现这个错误(“后端配置项没有正常加载,上传插件不能正常使用!”),单图上传也实现不了,同时console中报这个错误(“Uncaught ReferenceError: ZeroClipboard is not defined”)。
不知道是哪里的问题?求帮助。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.