Fix/notes editing

https://www.openproject.org/work_packages/3318. Fixes being unable to quote a note after editing it as well.