我正在尝试为 RTE 字段设置一个值,但它不会采用该值。这一行: Ae2.val(Ae1); // 即使这样也行不通:Ae2.val("Test"); 有任何想法吗。谢谢你
function PreSaveAction()
{
$(document).ready(function() {
var Ae2 = $("#ctl00_m_g_1b07d546_aec6_4582_b36d_9bfe97fc36e0_ff26_1_ctl00_ctl00_TextField_inplacerte");
//SharePoint's Rich text editor
alert("Ae2 before set val: \n" + Ae2.html());
Ae2.val(Ae1); // even this will not work: Ae2.val("Test");
alert("Ae2 after set val: " + Ae2.html());
});
return true;
}