Baidu Ueditor Editor How to turn off crawl remote picture function

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.