我正在尝试将 TinyMCE 富文本仅应用于使用 Django 生成的一种表单。但是,这样做后,它会在表单中插入另一个文本区域。我究竟做错了什么?
编辑代码
<p><div id="AnswerBox">{{ form.as_p }}</div></p>
$('.answers').load(url, function() {
$('#AnswerBox').addClass('mceEditor',
function() {tinyMCE.init({
theme : "advanced",
mode : "specific_textareas",
editor_selector : "AnswerBox",
elements: "AnswerBox",
plugins : "fullpage",
theme_advanced_buttons3_add : "fullpage",
});
})
})