要使TinyMCE在UpdatePanel中工作,您需要遵循以下步骤:
function initializeTinyMCE() {
tinyMCE.init({
mode: "textareas",
theme: "advanced",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
theme_advanced_path: false,
plugins: "preview,inlinepopups",
width: "100%"
});
}
initializeTinyMCE()
函数。Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
initializeTinyMCE();
});
通过遵循这些步骤,您应该可以在UpdatePanel中成功使用TinyMCE。
领取专属 10元无门槛券
手把手带您无忧上云