@prezly/docx-cleaner
Advanced tools
Comparing version 0.1.0-alpha.21 to 0.1.0-alpha.22
{ | ||
"name": "@prezly/docx-cleaner", | ||
"version": "0.1.0-alpha.21", | ||
"version": "0.1.0-alpha.22", | ||
"description": "Normalize dirty HTML and DOCX/RTF documents into clean, understandable HTML", | ||
@@ -30,3 +30,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "f976f56acbf40fd4c58ddc82e272be3f80db26cf" | ||
"gitHead": "e6180ea6f508a88bc79f93b3acc6153c8b50c776" | ||
} |
@@ -18,5 +18,4 @@ # @prezly/docx-cleaner | ||
const handlePaste = (event: ClipboardEvent<HTMLTextAreaElement>) => { | ||
const clipboardData = event.clipboardData || window.clipboardData; | ||
const html = data.getData('text/html'); | ||
const rtf = data.getData('text/rtf'); | ||
const html = event.clipboardData.getData('text/html'); | ||
const rtf = event.clipboardData.getData('text/rtf'); | ||
@@ -27,2 +26,3 @@ try { | ||
} catch (error) { | ||
setValue(error.message); | ||
console.error(error); | ||
@@ -29,0 +29,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157187