With this patch when editing a note new attachments can be added the same way as with editing issues:
Existing note on issue page:

Same note while editing it:

After pasting an image from the clipboard:

After saving the note:

When saving the note/journal the issue is automatically updated with the attachments, but the issue page isn't immediately reflecting that, here you see the saved note with the image (showing black text "test" on white background), but the issue doesn't show any attachments yet:

Only after a manual browser refresh the issue shows the new attachment(s):

There are some skipped tests in "rake test", but no failures:
...
Bazaar test repository NOT FOUND. Skipping unit tests !!!
CVS test repository NOT FOUND. Skipping unit tests !!!
Filesystem test repository NOT FOUND. Skipping unit tests !!! See doc/RUNNING_TESTS.
Git test repository NOT FOUND. Skipping unit tests !!!
Git UTF-8 test repository NOT FOUND. Skipping unit tests !!!
Mercurial test repository NOT FOUND. Skipping unit tests !!!
Subversion test repository NOT FOUND. Skipping unit tests !!!
Skipping LDAP tests.
...
Finished in 385.833217s, 14.3067 runs/s, 76.1961 assertions/s.
5520 runs, 29399 assertions, 0 failures, 0 errors, 14 skips
You have skipped tests. Run with --verbose for details.
A new test "test_update_with_attachments" was added to the journals_controller_test.rb