Authored by 周少峰

'link'

@@ -256,7 +256,7 @@ @@ -256,7 +256,7 @@
256 obj.textValue = text.value; 256 obj.textValue = text.value;
257 } 257 }
258 var conItem = href.indexOf("?") > -1 ? "&" : "?"; 258 var conItem = href.indexOf("?") > -1 ? "&" : "?";
259 - obj._href = obj.href = href + conItem + 'openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: encodeURI(href), param: getUrlParams(href)}}); 259 + obj._href = obj.href = href + conItem + 'openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: href.split("?")[0], param: getUrlParams(href)}});
260 260
261 editor.execCommand('link',utils.clearEmptyAttrs(obj) ); 261 editor.execCommand('link',utils.clearEmptyAttrs(obj) );
262 dialog.close(); 262 dialog.close();