Added publish feature to the editor.