Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: do not add block id on list items

Abdullah Atta5974ffc0d4b1
diff --git a/packages/editor/src/extensions/block-id/block-id.ts b/packages/editor/src/extensions/block-id/block-id.ts
index 3d60f3111..511ebc0f4 100644
--- a/packages/editor/src/extensions/block-id/block-id.ts
+++ b/packages/editor/src/extensions/block-id/block-id.ts
@@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { Extension, NodeWithPos } from "@tiptap/core";
import { Plugin } from "@tiptap/pm/state";
import { nanoid } from "nanoid";
-import { getChangedNodes } from "../../utils/prosemirror";
const BLOCK_ID_TYPES = [
"paragraph",
@@ -28,7 +27,6 @@ const BLOCK_ID_TYPES = [
"blockquote",
"bulletList",
"orderedList",
- "taskItem",
"taskList",
"table",
"codeblock",
@@ -82,7 +80,6 @@ export const BlockId = Extension.create({
blocksWithoutBlockId.push({ node: n, pos: offset });
});
if (blocksWithoutBlockId.length > 0) {
- console.log(blocksWithoutBlockId);
const { tr } = newState;
for (const { node, pos } of blocksWithoutBlockId) {
const id = nanoid(8);