diff --git a/source/Clipboard.ts b/source/Clipboard.ts index f42d5de..847f519 100644 --- a/source/Clipboard.ts +++ b/source/Clipboard.ts @@ -105,6 +105,7 @@ const extractRangeToClipboard = ( // Set clipboard data if (!plainTextOnly && html && text !== html) { + html = '' + html; clipboardData.setData('text/html', html); } clipboardData.setData('text/plain', text);