edits directive to allow posts to be updates from editor.html