diff --git a/core/quill.js b/core/quill.js
index f54c8bcb23..f24718b3cf 100644
--- a/core/quill.js
+++ b/core/quill.js
@@ -109,11 +109,13 @@ class Quill {
source,
);
});
- const contents = this.clipboard.convert({
- html: `${html}
`,
- text: '\n',
- });
- this.setContents(contents);
+ if (html) {
+ const contents = this.clipboard.convert({
+ html: `${html}
`,
+ text: '\n',
+ });
+ this.setContents(contents);
+ }
this.history.clear();
if (this.options.placeholder) {
this.root.setAttribute('data-placeholder', this.options.placeholder);