Refactor Editor.saveProse