This commit is contained in:
parent
49fd4bc1d0
commit
a5af985396
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue