A former managing editor for the New York Post has sued the paper and its parent company, News Corp., claiming that she was demoted and later fired after complaining that an ex-editor-in-chief had propositioned her for sex.