当前位置:首页  »  科技  »  科技百科  »  文章  »  UEditor编辑器怎么关闭远程图片抓取功能

UEditor编辑器怎么关闭远程图片抓取功能

来源:网络 转载:百问网 时间:2022-04-17 11:55
导读UEditor编辑器怎么关闭远程图片抓取功能,在ueditor.all.js文件中可以找到远程图片抓取功能模块参数catchRemoteImageEnable设置flase后,然后在ueditor.config.js 将同样参数设置为false即可关闭远程图片抓取功能。

第一步,找到对应远程功能,查阅:ueditor.all.js文件,发现如下代码:

// plugins/catchremoteimage.js

///import core

///commands 远程图片抓取

///commandsName  catchRemoteImage,catchremoteimageenable

///commandsTitle  远程图片抓取

/**

 * 远程图片抓取,当开启本插件时所有不符合本地域名的图片都将被抓取成为本地服务器上的图片

 */

UE.plugins['catchremoteimage'] = function () {

    var me = this,

        ajax = UE.ajax;

    /* 设置默认值 */

    if (me.options.catchRemoteImageEnable === false) return;

    me.setOpt({

        catchRemoteImageEnable: false

    });

    //.......

};
  • 热门焦点
Top
加载中...