同时调用另一个控件
(function(pageEditor,pageMarkerEditor,imeWeb){
var FINAL_PAGE_EDITOR_TAB_TYPE = "MarkerEditor";
pageMarkerEditor.init=function(oid){
var editorContainer = pageEditor.initEditorContainer();
var callback = function (oid,tabId) {
var editorContainerComponent = this;
var tabNavConfig = {
tabType:FINAL_PAGE_EDITOR_TAB_TYPE,
data: {
"tabNavStatus": "",
"tabName": "New*",
"oid":null
}
};
var tabNavPanelConfig = {
tabType:FINAL_PAGE_EDITOR_TAB_TYPE,
template:"markers/editorMarker",
data:{
"tabContentStatus":"",
"tabContentIframeId":tabId,
"tabContentIframeSrc": ""
}
};
//新建tab页面
var docInfo = pageMarker.getXmlDocInfo(oid);
if(docInfo.success === false){
toastr"error";
return ;
}
//moidfy by zxt 2018-08-06 根据masterOid,设置当前tab页打开的文档对象
docInfo.tabId = tabId;
storeMg.put({id:"pubdoc_"+docInfo.masterOid,data:docInfo});
tabNavPanelConfig.data.masterOid = docInfo.masterOid;
//设置tab项也名称
tabNavConfig.data.tabName = (docInfo.name &&docInfo.name!=="")? docInfo.name : imeWeb.getI18n("unnamed");
//设置tab项oid
tabNavConfig.data.oid = docInfo.oid;
editorContainerComponent.addTab(tabNavConfig,tabNavPanelConfig,tabId);
//load页面
("#tab_content_"+tabId).find(".editorContainer").load("/imeWeb/"+docInfo.url,function () { //初始化editor控件 // modify by zxt-2018-08-06 将文档信息传递给初始化控件函数 initEditables(docInfo); if(docInfo.checkoutStatus == 'o'){('.editable').editable('enable');
pubDoc.initCheckBtn(false);
}else{
$('.editable').editable('disable');
pubDoc.initCheckBtn(true);
}
});
}
editorContainer.openEditor(oid,callback);
}
})(window.pageEditor || (window.pageEditor = {}),window.pageMarkerEditor || (window.pageMarkerEditor = {}),window.imeWeb || (window.imeWeb ={}));
网友评论