mirror of
https://github.com/siyuan-note/siyuan
synced 2026-04-21 13:37:52 +00:00
This commit is contained in:
parent
c9208f8af0
commit
44fbe3cbac
1 changed files with 2 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ import {addEditorToDatabase} from "../render/av/addToDatabase";
|
|||
import {openFileById} from "../../editor/util";
|
||||
import {hasTopClosestByClassName} from "../util/hasClosest";
|
||||
import {showMessage} from "../../dialog/message";
|
||||
import {removeZWJ} from "../util/normalizeText";
|
||||
|
||||
export const openTitleMenu = (protyle: IProtyle, position: IPosition, from: string) => {
|
||||
hideTooltip();
|
||||
|
|
@ -59,7 +60,7 @@ export const openTitleMenu = (protyle: IProtyle, position: IPosition, from: stri
|
|||
})
|
||||
]);
|
||||
|
||||
const textHTML = `<!--data-siyuan='${encodeBase64(responseHTML.data.dom)}'-->${responseHTML.data.dom}`;
|
||||
const textHTML = `<!--data-siyuan='${encodeBase64(responseHTML.data.dom)}'-->${removeZWJ(responseHTML.data.dom)}`;
|
||||
await navigator.clipboard.write([
|
||||
new ClipboardItem({
|
||||
"text/plain": new Blob([responseText.data.content], {type: "text/plain"}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue