fix: unable to copy select all table

This commit is contained in:
yanmao 2021-12-24 23:14:02 +08:00
parent cde08ab3ea
commit be442525c2
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export default class Clipboard implements ClipboardInterface {
) {
if (!range) range = Range.from(this.editor);
if (!range) throw 'Range is null';
range = range.cloneRange().shrinkToElementNode();
range = range.cloneRange(); //.shrinkToElementNode();
let card = range.startNode.closest(`[${CARD_KEY}]`, (node) => {
return $(node).isEditable()
? undefined