From 8d221c8a004dba994b25234a2619147aa0fe7580 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 18 Dec 2023 21:26:03 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=8E=A8=E9=80=81=E6=9B=B4=E6=94=B9db?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/protyle/wysiwyg/transaction.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index 955dc2a05..e4dc0173d 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -476,6 +476,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: let nameHTML = ""; let aliasHTML = ""; let memoHTML = ""; + let avHTML = ""; Object.keys(data.new).forEach(key => { attrsResult[key] = data.new[key]; const escapeHTML = Lute.EscapeHTMLStr(data.new[key]); @@ -488,10 +489,10 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo: } else if (key === "memo") { memoHTML = `
`; } else if (key === "custom-avs") { - memoHTML = "
"; + avHTML = "
"; } }); - let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML; + let nodeAttrHTML = bookmarkHTML + nameHTML + aliasHTML + memoHTML + avHTML; if (protyle.block.rootID === operation.id) { // 文档 if (protyle.title) {