Skip to content

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

:bug:

Vanessa810f009e8313
diff --git a/app/src/protyle/wysiwyg/keydown.ts b/app/src/protyle/wysiwyg/keydown.ts
index 7d6ae62263..28abe17669 100644
--- a/app/src/protyle/wysiwyg/keydown.ts
+++ b/app/src/protyle/wysiwyg/keydown.ts
@@ -1330,7 +1330,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
- if (!nodeElement.classList.contains("code-block") && !event.repeat) {
+ if (!nodeElement.classList.contains("code-block") && !event.repeat &&
+ !hasClosestByAttribute(nodeElement, "data-type", "NodeBlockQueryEmbed")) {
let findToolbar = false;
protyle.options.toolbar.find((menuItem: IMenuItem) => {
if (!menuItem.hotkey) {