Skip to content

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

:art: 选中 html 块后输入的文字会出现在块中

Vanessa47bb845b1d64
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index ab061ae892..7c8dc7050d 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -1860,9 +1860,6 @@ export class WYSIWYG {
isComposition = false;
const range = getEditorRange(this.element);
const blockElement = hasClosestBlock(range.startContainer);
- if (blockElement && blockElement.getAttribute("data-type") === "NodeHTMLBlock") {
- return;
- }
if (!blockElement) {
return;
}
@@ -1898,10 +1895,6 @@ export class WYSIWYG {
if (!blockElement) {
return;
}
- if (blockElement && blockElement.getAttribute("data-type") === "NodeHTMLBlock") {
- event.stopPropagation();
- return;
- }
if ([":", "(", "【", "(", "[", "{", "「", "『", "#", "/", "、"].includes(event.data)) {
protyle.hint.enableExtend = true;
}