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里面的路径

  • 相关阅读:
    JAVA中int、String的类型转换
    MyEclipse 快捷键
    HTTP 协议详解(转)
    HTTP协议详解
    MYSQL类型与JAVA类型对应表
    XML中<beans>中属性概述
    poj 2342 && hdu 1520
    51nod 1873 初中的算术
    AtCoder Grand Contest 014 B
    “玲珑杯”线上赛 Round #17 河南专场 B.震惊,99%+的中国人都会算错的问题
  • 原文地址:https://www.cnblogs.com/xin-jun/p/7122609.html
Copyright © 2011-2022 走看看