csrf offline for ckeditor to work, fix of forEach function