Вырезаем, копируем и вставляем в JavaScript с помощью Clipboard APIhttps://www.sitepoint.com/clipboard-api/