Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Restore emoji hints in table cells https://github.com/siyuan-note/siyuan/issues/19934

Daniel85fb44f51626
diff --git a/app/src/protyle/render/tableCellRichEditor.ts b/app/src/protyle/render/tableCellRichEditor.ts
index cbd9e52b5f..6bae3c0a2a 100644
--- a/app/src/protyle/render/tableCellRichEditor.ts
+++ b/app/src/protyle/render/tableCellRichEditor.ts
@@ -181,7 +181,8 @@ export const openTableCellRichEditor = async (owner: IProtyle, cell: HTMLTableCe
hintSlash(key, protyle, hintSource).filter(item => TABLE_CELL_SLASH_IDS.has(item.id)));
const hint: IProtyleOptions["hint"] = {
extend: [{key: "((", hint: hintRef}, {key: "【【", hint: hintRef}, {key: "((", hint: hintRef},
- {key: "[[", hint: hintRef}, {key: "#", hint: hintTag}, {key: "/", hint: safeSlash}, {key: "、", hint: safeSlash}],
+ {key: "[[", hint: hintRef}, {key: "#", hint: hintTag}, {key: "/", hint: safeSlash}, {key: "、", hint: safeSlash},
+ {key: ":"}],
};
let finished = false;
let composing = false;
diff --git a/app/src/protyle/util/tableCellRichMenu.ts b/app/src/protyle/util/tableCellRichMenu.ts
index 14cfd10ab4..0ef98d9102 100644
--- a/app/src/protyle/util/tableCellRichMenu.ts
+++ b/app/src/protyle/util/tableCellRichMenu.ts
@@ -1,5 +1,5 @@
export const TABLE_CELL_SLASH_IDS = new Set([
"ref", "heading1", "heading2", "heading3", "heading4", "heading5", "heading6", "list", "orderedList", "check",
"quote", "code", "math", "link", "bold", "italic", "underline", "strike", "mark", "sup", "sub", "inlineCode",
- "kbd", "tag", "inlineMath",
+ "kbd", "tag", "inlineMath", "emoji",
]);