improvements to update content for ckeditor different editing modes