Authored by 周少峰

'encode'

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