Authored by 周少峰

'-l'

... ... @@ -202,7 +202,7 @@
// yoholink
if (url) {
var urlPart = url.split('?openby:yohobuy=');
var urlPart = url.indexOf('?openby:yohobuy=') > 0 ? url.split('?openby:yohobuy=') : url.split('&openby:yohobuy=');
if (urlPart.length == 2) {
try {
action.val(JSON.parse(urlPart[1]).action);
... ...
... ... @@ -11,7 +11,7 @@ UE.registerUI('yohoLink',function(editor,uiName){
//创建dialog
var dialog = new UE.ui.Dialog({
//指定弹出层中页面的路径,这里只能支持页面,因为跟addCustomizeDialog.js相同目录,所以无需加路径
iframeUrl: UEDITOR_CONFIG.UEDITOR_HOME_URL + 'dialogs/yohoLink/yohoLink.html',
iframeUrl: UEDITOR_CONFIG.UEDITOR_HOME_URL + 'dialogs/yohoLink/yohoLink.html?v=1',
//需要指定当前的编辑器实例
editor:editor,
//指定dialog的名字
... ...