Fix bug - when pressing "save & continue editing" button the codemirror content is notsaved