updated codemirror
editor state now saved