...
|
...
|
@@ -226,7 +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,8 +241,8 @@ |
|
|
if(range.collapsed){
|
|
|
obj.textValue = text.value;
|
|
|
}
|
|
|
|
|
|
obj._href = obj.href = href+'?openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: href}});
|
|
|
href.indexOf("?") > -1
|
|
|
obj._href = obj.href = href+ href.indexOf("?") > -1 ? "&" : "?" + 'openby:yohobuy=' + JSON.stringify({action: action.val(), params: {url: encodeURI(href)}});
|
|
|
|
|
|
editor.execCommand('link',utils.clearEmptyAttrs(obj) );
|
|
|
dialog.close();
|
...
|
...
|
|