我使用.action
属性在AJAX
响应上设置CKEDITOR
实例:
document.getElementById("ID").action=CKEDITOR.replace('text_area_ID', {
//settings
});
用jQuery可以做到这一点吗?
$('#ID')[0].action = CKEDITOR.replace('text_area_ID', {
//settings
});
或者,您可以使用CKEditor:提供的jQuery适配器
$('#ID').ckeditor({
// settings
});