document.getElementById( "id" ).action on jQuery



我使用.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
});

最新更新