diff --git a/app/src/ai/actions.ts b/app/src/ai/actions.ts index 5c412d5a2..6058f19d3 100644 --- a/app/src/ai/actions.ts +++ b/app/src/ai/actions.ts @@ -11,7 +11,8 @@ import {highlightRender} from "../protyle/render/highlightRender"; import {Constants} from "../constants"; import {setStorageVal} from "../protyle/util/compatibility"; import {hasClosestByClassName} from "../protyle/util/hasClosest"; -import {escapeAttr, escapeHtml} from "../util/escape"; +import {escapeAriaLabel, escapeHtml} from "../util/escape"; +import {showMessage} from "../dialog/message"; export const fillContent = (protyle: IProtyle, data: string, elements: Element[]) => { if (!data) { @@ -36,38 +37,6 @@ export const AIActions = (elements: Element[], protyle: IProtyle) => { click() { const dialog = new Dialog({ title: window.siyuan.languages.aiCustomAction, - content: `
-