CHT 修改超链接前缀https, 默认nofollow,跟踪链接

hotfix/远程访问多媒体中心
lyt 7 years ago
parent 3c967b58e0
commit b09c09d648

@ -3207,9 +3207,9 @@ _extend(KCmd, {
var thirdlink=false
if (arguments[3] && arguments[3]=='1') {
if(url.indexOf("www.chinahighlights.com") < 0 ){
url='http://www.chinahighlights.com'+url;
url='https://www.chinahighlights.com'+url;
}
url ='http://www.chinahighlights.com/redirect.asp?url='+url+'&t=78002';
url ='https://www.chinahighlights.com/redirect.asp?url='+url+'&t=78002';
thirdlink=true;
};
@ -5780,7 +5780,7 @@ _plugin('core', function(K) {
html = html.replace(/class=\"MsoNormal\"/gi, '');
html = html.replace(/file\:\/\/C:/gi, '');
html = html.replace(/<p class=\"MsoListParagraph\"/gi, '<li');
self.insertHtml(html, true);
}
K(doc.body).bind('paste', function(e){

@ -25,12 +25,12 @@ KindEditor.plugin('link', function(K) {
//nofollow
'<div class="ke-dialog-row"">' +
'<label for="nofollow" style="width:60px;">nofollow</label>' +
'<select id="nofollow" name="nofollow" style="width:260px;"><option selected="selected" value="0">否</option><option value="1">是</option></select>' +
'<select id="nofollow" name="nofollow" style="width:260px;"><option selected="selected" value="1">是</option><option value="0">否</option></select>' +
'</div>' +
//跟踪代码
'<div class="ke-dialog-row"">' +
'<label for="thirdlink" style="width:60px;">跟踪链接</label>' +
'<select id="thirdlink" name="thirdlink" style="width:260px;"><option selected="selected" value="0">否</option><option value="1">是</option></select>' +
'<select id="thirdlink" name="thirdlink" style="width:260px;"><option selected="selected" value="1">是</option><option value="0">否</option></select>' +
'</div>' +
'</div>',
dialog = self.createDialog({

Loading…
Cancel
Save