We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebe16ca commit 147c378Copy full SHA for 147c378
packages/quill/src/modules/clipboard.ts
@@ -170,9 +170,9 @@ class Clipboard extends Module<ClipboardOptions> {
170
171
onCaptureCopy(e: ClipboardEvent, isCut = false) {
172
if (e.defaultPrevented) return;
173
- e.preventDefault();
174
const [range] = this.quill.selection.getRange();
175
if (range == null) return;
+ e.preventDefault();
176
const { html, text } = this.onCopy(range, isCut);
177
e.clipboardData?.setData('text/plain', text);
178
e.clipboardData?.setData('text/html', html);
@@ -350,6 +350,7 @@ function isLine(node: Node, scroll: ScrollBlot) {
350
'table',
351
'td',
352
'tr',
353
+ 'th',
354
'ul',
355
'video',
356
].includes(node.tagName.toLowerCase());
0 commit comments