Create beforeCopy event to allow modifying copied text.