Authored by 周少峰

'href'

... ... @@ -226,6 +226,7 @@
if(!hrefStartWith(href,["http","/","ftp://",'#'])) {
href = "http://" + href;
}
href = encodeURI(href);
var obj = {
'href' : href,
'title' : $G("title").value.replace(/^\s+|\s+$/g, ''),
... ... @@ -241,7 +242,7 @@
obj.textValue = text.value;
}
obj._href = obj.href = encodeURI(href)+'?openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: encodeURI(href)}});
obj._href = obj.href = href+'?openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: href}});
editor.execCommand('link',utils.clearEmptyAttrs(obj) );
dialog.close();
... ...