Make sure comment editor does not collapse.
Moved code of publish related to the separate package.