Short example how to overwrite clipboard data using the [1] http://www.w3.org/TR/clipboard-apis/ https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#selection