Implemented preview for  the post edit page