调用kindeditor$("#tbactmsg").focus()
KE.show({
id: 'tbactmsg',
imageUploadJson: '/edit/asp.net/upload_json.ashx',
fileManagerJson: '/edit/asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function (id) {
KE.event.ctrl(document, 13, function () {
KE.util.setData(id);
});
KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
KE.util.setData(id, $("#actcontent").val());
});
}
});
然后页面一个按钮点击执行js方法rep() 其目的就是给kindeditor赋值function rep(id) {
var str = "<div style='border:1px solid #C80A00; width:700px;'>引用自 ";
str += $("#hidUname").val() + ":" + $("#contentp" + id).html();
str += "</div>"
$("#tbactmsg").val($("#tbactmsg").val() + str);
}
但点击没有效果
KE.show({
id: 'tbactmsg',
imageUploadJson: '/edit/asp.net/upload_json.ashx',
fileManagerJson: '/edit/asp.net/file_manager_json.ashx',
allowFileManager: true,
afterCreate: function (id) {
KE.event.ctrl(document, 13, function () {
KE.util.setData(id);
});
KE.event.ctrl(KE.g[id].iframeDoc, 13, function () {
KE.util.setData(id, $("#actcontent").val());
});
}
});
然后页面一个按钮点击执行js方法rep() 其目的就是给kindeditor赋值function rep(id) {
var str = "<div style='border:1px solid #C80A00; width:700px;'>引用自 ";
str += $("#hidUname").val() + ":" + $("#contentp" + id).html();
str += "</div>"
$("#tbactmsg").val($("#tbactmsg").val() + str);
}
但点击没有效果
KE.html(id, value);