modularize more the post editor