now the editor works with save