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
Copy Code code 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 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
Copy Code code 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.