Better cleanup the editor

Ensures that the editor is removed from notes when they are hidden. Also
ensures that the note-text is shown. This should finally completely
fix #35.