Authored by 周少峰

'encode'

... ... @@ -241,7 +241,7 @@
obj.textValue = text.value;
}
obj._href = obj.href = href+'?openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: href}});
obj._href = obj.href = encodeURI(href)+'?openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: encodeURI(href)}});
editor.execCommand('link',utils.clearEmptyAttrs(obj) );
dialog.close();
... ...