$config['csrf_protection'] = TRUE;
<script>
$(function()
{
$('#content').redactor({
imageUpload: "/upload/redactor/image",
fileUpload: "/upload/redactor/file",
plugins: ['table', 'video'],
uploadImageFields: {
<?php echo $this->security->get_csrf_token_name(); ?>: '<?php echo $this->security->get_csrf_hash(); ?>'
}
});
});
</script>
redactor 에디터도 좀 봤는데 깔끔하고 필요한 기능만 들어있네요.
이미지 드래그앤 드롭으로 올리는게 마음에 드네요. ^^