问题重现:
点击一个操作“编辑内容”之后,调用点击方法editContent(id)。
方法如下:
//内容编辑
//editContentDialog为dialog,
function editContent(id){
$.post("selectTopicById.do",{id:id},function(result){
var re = eval("("+result+")");
if(re.id != null && re.id != ""){
editor.html(re.editContent);
$('#editContentDialog').css("display","block");
$('#editContentDialog').dialog({
title: '编辑内容',
width: 800,
height: 420,
buttons:[{
text:'保存',
handler:function(){
var editContent = editor.html();
//这里提交数据到数据库
$.post("updateEditContent.do",{editContent:editContent,id:id},function(res){
var re = eval("("+res+")");
if(re.result=="OK"){
window.parent.parent.tishi("操作成功");
$("#editContentDialog").dialog('close');
$('#tender').qyfwGrid(options);
} else (re.result=="NO"){
window.parent.parent.tishi("操作失败");
$('#tender').qyfwGrid(options);
}
});
}
},{
text:'取消',
handler:function(){
$("#editContentDialog").dialog('close');
$('#tender').qyfwGrid(options);
editor.html('');
}
}],
onClose:function(){
editor.html('');
},
modal: true
});
} else {
window.parent.parent.tishi("操作失败");
}
});
}
弹出的dialog中的kingEdit无法编辑,即无法输入内容。
大神,求解答。。。