zoukankan      html  css  js  c++  java
  • 百度编辑器

    php 后端配置

      config.json 修改

          图片访问路径前缀,为自己服务器的域名

        上传保存路径,可以自定义保存路径和文件名格式 

      Upload.class.php 修改

                 /**
                 * 获取文件完整路径
                 * @return string
                 */
                 private function getFilePath()
                 {
                         $fullname = $this->fullName;
                         if (substr($fullname, 0, 1) != '/') {
                             $fullname = '/' . $fullname;
                         }

         //此处需要修改为全路径
                        return "/usr/share/nginx/html/app/shop/pro/Web/".$fullname;
                 }

       前端

         ueditor.config.js

         

        var URL = window.UEDITOR_HOME_URL || getUEBasePath();

        /**
        * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
        */
        window.UEDITOR_CONFIG = {

        //为编辑器实例添加一个路径,这个不能被注释
        UEDITOR_HOME_URL: URL+"uedite/"

        // 服务器统一请求接口路径(为后台PHP里编辑器的controller.php访问地址)
        , serverUrl: "http://home.ishandian.com.cn/ueditor/controller.php" 

       重点是要修改Upload.class.php里面的路径

  • 相关阅读:
    CodeForces 587A
    矩阵快速幂模板
    LCA模板
    Codeforces Round #226 (Div. 2 )
    Codeforces Round #225 (Div. 2)
    SGU132
    SRM 599 DIV 2
    POJ1038
    SGU223
    POJ1185
  • 原文地址:https://www.cnblogs.com/xin-jun/p/7122609.html
Copyright © 2011-2022 走看看