A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: add missing node types in editor
Ammar Ahmed24d9568c5d6d
diff --git a/packages/editor/src/index.ts b/packages/editor/src/index.tsindex c2dc78f9e..9974062f6 100644--- a/packages/editor/src/index.ts+++ b/packages/editor/src/index.ts@@ -330,7 +330,9 @@ const useTiptap = (irremovableNodesOnBackspace: [CodeBlock.name,TaskListNode.name,- Table.name+ Table.name,+ CheckList.name,+ AttachmentNode.name],escapableNodesIfAtDocumentStart: [CodeBlock.name,diff --git a/packages/editor/src/utils/node-types.ts b/packages/editor/src/utils/node-types.tsindex 314f2f316..df675d1e9 100644--- a/packages/editor/src/utils/node-types.ts+++ b/packages/editor/src/utils/node-types.ts@@ -24,16 +24,20 @@ import { OrderedList } from "@tiptap/extension-ordered-list";import { OutlineList } from "../extensions/outline-list/index.js";import { OutlineListItem } from "../extensions/outline-list-item/index.js";import { TaskItem } from "@tiptap/extension-task-item";+import { CheckList } from "../extensions/check-list/index.js";+import { CheckListItem } from "../extensions/check-list-item/index.js";export const LIST_NODE_TYPES = [TaskList.name,OutlineList.name,BulletList.name,- OrderedList.name+ OrderedList.name,+ CheckList.name];export const LIST_ITEM_NODE_TYPES = [TaskItem.name,OutlineListItem.name,- ListItem.name+ ListItem.name,+ CheckListItem.name];