mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-27 09:24:06 +01:00
This commit is contained in:
parent
bff6f06999
commit
bdee142509
2 changed files with 13 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ import {App} from "../index";
|
|||
import {Constants} from "../constants";
|
||||
import {getCellText} from "../protyle/render/av/cell";
|
||||
import {isTouchDevice} from "../util/functions";
|
||||
import {escapeAriaLabel} from "../util/escape";
|
||||
import {escapeAriaLabel, escapeHtml} from "../util/escape";
|
||||
|
||||
let popoverTargetElement: HTMLElement;
|
||||
let notebookItemElement: HTMLElement | false;
|
||||
|
|
@ -81,7 +81,7 @@ export const initBlockPopover = (app: App) => {
|
|||
}
|
||||
}
|
||||
if (!tip) {
|
||||
tip = aElement.getAttribute("data-inline-memo-content");
|
||||
tip = escapeHtml(aElement.getAttribute("data-inline-memo-content"));
|
||||
if (tip) {
|
||||
tooltipClass = "memo"; // 为行级备注添加 class https://github.com/siyuan-note/siyuan/issues/6161
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue