At the beginning, I didn't know how to trigger this function of "女子" was triggered. I thought there was a button, and I clicked it to trigger it. After reading the document, I didn't find it. Then I saw on the Internet that it was triggered when I copied and pasted the pictures in the non-white list and went to the editing box. "女子".........
The question is again: Today, I was writing the [Remote Picture Collection Function] of Baidu UEditor editor: How did this function be turned off?
It took about 15 minutes to check the [official documents] and [official forum], but no solution was found. So check the source files to see if there are any relevant judgments (my JS is very bad)
So I immediately checked the ueditor.all.js file and found the following code
The code copy is as follows:
// plugins/catchremoteimage.js
///import core
///commands Remote image crawling
///commandsName catchRemoteImage,catchremoteimageenable
///commandsTitle Remote image crawling
/**
* Remote image crawling. When this plug-in is enabled, all pictures that do not match the local domain name will be crawled into pictures on the local server.
*/
UE.plugins['catchremoteimage'] = function () {
var me = this,
ajax = UE.ajax;
/* Set default value*/
if (me.options.catchRemoteImageEnable === false) return;
me.setOpt({
catchRemoteImageEnable: false
});
//.......
};
I found out, there is a configuration parameter: catchRemoteImageEnable
Add configuration parameters immediately in: ueditor.config.js
The code copy is as follows:
//Whether to crawl remote pictures are enabled, default true
,catchRemoteImageEnable:false
Then the editor page is refreshed, and then copy and paste the remote image. At this time, the get request catchimage will no longer be sent to the server.