I was trying to implement that way, but instead I decided to let people open a note in a separate window (Double click a note on the side bar) so there won't be another button in the typing area.
Notes are automatically stored in a database at /Users/{Your-username}/Library/Application Support/Lesen.lenote/lenote.sqlite.
I am working on the cloud feature:)