Vanessa 2022-10-16 17:48:52 +08:00 committed by Liang Ding
parent 49fd4bc1d0
commit a5af985396
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -1093,7 +1093,7 @@ export class WYSIWYG {
}
}
protyle.hint.render(protyle);
event.clipboardData.setData("text/plain", protyle.lute.BlockDOM2StdMd(html));
event.clipboardData.setData("text/plain", protyle.lute.BlockDOM2StdMd(html).trimEnd()); // 需要 trimEnd否则 \n 会导致 https://github.com/siyuan-note/siyuan/issues/6218
event.clipboardData.setData("text/html", Constants.ZWSP + html);
});