Saved changes to Note overwritten at click 'Save'

You can use this to get the instance of the editor. Then call function such as set_note(note).