editor.customConfig.linkCheck = function(text, link) {
if (link != "") {
var reg = /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/;
if (!reg.test(link)) {
return '请输入正确的网址(例如 http://baidu.com)'
}else{
return true
}
}
}