|
发表于 2024-8-5 10:31:25
|
显示全部楼层
要重新加载一下
var _self = this;
var tinymceeditor = this.form.get("tinymceeditor");
tinymceeditor.destroy();
this.form.dialog({
"title": "填写内容",
"width": "1100",
"height": "800",
"moduleName": "div",
"buttonList" : [
{
"type": "ok", //(string) 样式,彩色底的按钮
"text": "确定", //(string)text:按钮显示名称
"action": function(){ //(function) 按钮对应的点击事件
//do something,this指向本对话框对象
// var value = _self.form.get("textfield").getData(); //获取div_1中的组件textfield的值
// if( !value ){
// _self.form.notice("请填写内容","info");
// }else{
this.close();
// }
}
},
{
"type": "cancel", //(string) 样式,灰色底的按钮
"text": "取消",
"action": function(){
//do something
this.close();
}
}
],
onPostShow: function(){
tinymceeditor._loadUserInterface();
}.bind(this),
onQueryClose: function(){
tinymceeditor.destroy();
tinymceeditor._loadUserInterface();
}
});
|
|