mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
🎨 复制纯文本 时移除所有零宽空格 Fix https://github.com/siyuan-note/siyuan/issues/6674
This commit is contained in:
parent
3ab71117f6
commit
14a8b1f8a4
4 changed files with 13 additions and 7 deletions
|
|
@ -3,7 +3,7 @@ import {getIconByType} from "../../editor/getIcon";
|
|||
import {iframeMenu, setFold, tableMenu, videoMenu, zoomOut} from "../../menus/protyle";
|
||||
import {MenuItem} from "../../menus/Menu";
|
||||
import {copySubMenu, openAttr, openWechatNotify} from "../../menus/commonMenuItem";
|
||||
import {updateHotkeyTip, writeText} from "../util/compatibility";
|
||||
import {copyPlainText, updateHotkeyTip, writeText} from "../util/compatibility";
|
||||
import {
|
||||
transaction,
|
||||
turnsIntoOneTransaction, turnsIntoTransaction,
|
||||
|
|
@ -591,7 +591,7 @@ export class Gutter {
|
|||
html += cloneNode.textContent + "\n";
|
||||
});
|
||||
});
|
||||
writeText(html.trimEnd());
|
||||
copyPlainText(html.trimEnd());
|
||||
}
|
||||
}, {
|
||||
label: window.siyuan.languages.copy + " HTML",
|
||||
|
|
@ -966,7 +966,7 @@ export class Gutter {
|
|||
});
|
||||
text += cloneNode.textContent + "\n";
|
||||
});
|
||||
writeText(text.trimEnd());
|
||||
copyPlainText(text.trimEnd());
|
||||
}
|
||||
}, {
|
||||
label: window.siyuan.languages.copy + " HTML",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue