issue #19807: Fix copy button. issue #19827: Lots and lots of fixes to quote.

This isn't everything, but there's a lot here so need to get this in.