首先找到link.js文件,修改内容如下:
this.addOutputRule(function(root){ $.each(root.getNodesByTagName('a'),function(i,a){ var _href = utils.html(a.getAttr('_href')); if(!/^(ftp|https?|\/|file)/.test(_href)){ _href = 'http://' + _href; } //a.setAttr('href', _href); a.setAttr('_href') if(a.getAttr('title')==''){ a.setAttr('title') } }) });