diff --git a/source/Clipboard.ts b/source/Clipboard.ts index 5675bdd..f42d5de 100644 --- a/source/Clipboard.ts +++ b/source/Clipboard.ts @@ -91,10 +91,8 @@ const extractRangeToClipboard = ( } } - // Get Text version of data - if (plainTextOnly) { - // Do nothing; we were copying plain text to start - } else if (toPlainText && html !== undefined) { + // Get Text version of data if converting from HTML + if (toPlainText && html !== undefined) { text = toPlainText(html); }