notebook: fix various editor bugs
notebook: update assets URL in new note.html after copying from a note