Skip to content

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

:recycle:

Vanessa32a9a998149a
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 922c31c7af..11d233e7e2 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -446,7 +446,7 @@ export class WYSIWYG {
return;
}
let target = event.target as HTMLElement;
- let nodeElement = hasClosestBlock(target);
+ let nodeElement = hasClosestBlock(target) as HTMLElement;
const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");
const galleryItemElement = hasClosestByClassName(target, "av__gallery-item");
if (event.shiftKey) {
@@ -902,7 +902,7 @@ export class WYSIWYG {
hideElements(["toolbar"], protyle);
if (target.classList.contains("table__select")) {
target = document.elementFromPoint(event.clientX, event.clientY) as HTMLElement;
- nodeElement = hasClosestBlock(target);
+ nodeElement = hasClosestBlock(target) as HTMLElement;
}
event.stopPropagation();
}