您好,欢迎来到意榕旅游网。
搜索
您的当前位置:首页ueditor如何使用

ueditor如何使用

来源:意榕旅游网


第一步,找到对应远程功能,查阅: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     });     //....... };

有个配置参数:catchRemoteImageEnable

第二步,修改ueditor.config.js中的catchRemoteImageEnable配置参数

//抓取远程图片是否开启,默认true ,catchRemoteImageEnable:false

然后编辑器页面,刷新,然后复制粘贴远程图片,这时不再向服务端发送get请求catchimage。

Copyright © 2019- yrrf.cn 版权所有 赣ICP备2024042794号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务