First launch Terminal app, and paste or type in the following command:

 

Then restart the finder with the following command:

 

Source: http://www.cultofmac.com/216414/select-and-copy-text-right-in-quicklook-os-x-tips/