This pit-Niang function, at first incredibly did not know how to trigger, think there is a button, click on the trigger, read the document, did not find, and then on the network to see the original is copied paste non-white list of pictures to edit the box trigger, pit Niang ah ...
The problem again: today in writing Baidu Ueditor editor of "Take remote picture function" has encountered: how the function closed?
It took another 15 minutes to check the [Official document] and [official forum], did not find a solution, then check the source file to see if there are relevant judgments about it (I js very rotten)
So immediately read: Ueditor.all.js file, found the following code
The
code is as follows:
//Plugins/catchremoteimage.js
///import Core
///commands remote Image capture
///commandsname catchremoteimage,catchremoteimageenable
///commandstitle remote Image capture
/**
* Remote image capture, when the plugin is turned on all images that do not match the local domain name will be crawled into the local server picture
*/
ue.plugins[' catchremoteimage ' = function () {
var me = this,
ajax = Ue.ajax;
/* Set the default value */
if (me.options.catchRemoteImageEnable = = false) return;
me.setopt ({
Catchremoteimageenable:false
});
//.......
};
Found it, there's a configuration parameter: catchremoteimageenable
Immediately added to: Ueditor.config.js plus configuration parameters
The
code is as follows:
//Crawl remote picture is turned on, default true
, Catchremoteimageenable:false
The editor page then refreshes and then copies and pastes the remote picture, which no longer sends a GET request Catchimage to the server.