Turn off editing mode on posts if sidebar opened

Fixes #201