This commit is contained in:
parent
02ddc8c17e
commit
ab8f2b7a39
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
|
|||
}
|
||||
const copyElement = hasTopClosestByClassName(event.target, "protyle-action__copy");
|
||||
if (copyElement) {
|
||||
let text = copyElement.parentElement.nextElementSibling.textContent.trimEnd();
|
||||
let text = copyElement.parentElement.nextElementSibling.textContent.replace("\n", "");
|
||||
text = text.replace(/\u00A0/g, " "); // Replace non-breaking spaces with normal spaces when copying https://github.com/siyuan-note/siyuan/issues/9382
|
||||
writeText(text);
|
||||
showMessage(window.siyuan.languages.copied, 2000);
|
||||
|
|
Loading…
Add table
Reference in a new issue