From 0ca931bf9c0919d4253a49beaa4d52517d02c4cc Mon Sep 17 00:00:00 2001 From: Cesar Alaestante Date: Sun, 17 Dec 2023 19:12:37 -0700 Subject: [PATCH] remove charachter count limit on tiptap --- examples/tiptap/package.json | 1 - examples/tiptap/src/components/TextEditor.tsx | 4 ---- package-lock.json | 23 ------------------- 3 files changed, 28 deletions(-) diff --git a/examples/tiptap/package.json b/examples/tiptap/package.json index 1d38fb5..7b7f735 100644 --- a/examples/tiptap/package.json +++ b/examples/tiptap/package.json @@ -21,7 +21,6 @@ "@rocicorp/reflect": "^0.38.202311200859", "@rocicorp/reflect-yjs": "0.0.1", "@tiptap/core": "^2.0.4", - "@tiptap/extension-character-count": "^2.0.4", "@tiptap/extension-collaboration": "^2.0.4", "@tiptap/extension-collaboration-cursor": "^2.0.4", "@tiptap/extension-highlight": "^2.0.4", diff --git a/examples/tiptap/src/components/TextEditor.tsx b/examples/tiptap/src/components/TextEditor.tsx index 209502d..40c60d6 100644 --- a/examples/tiptap/src/components/TextEditor.tsx +++ b/examples/tiptap/src/components/TextEditor.tsx @@ -7,7 +7,6 @@ import { Reflect } from "@rocicorp/reflect/client"; import { nanoid } from "nanoid"; import { EditorContent, useEditor } from "@tiptap/react"; -import CharacterCount from "@tiptap/extension-character-count"; import Collaboration from "@tiptap/extension-collaboration"; import CollaborationCursor from "@tiptap/extension-collaboration-cursor"; import Highlight from "@tiptap/extension-highlight"; @@ -134,9 +133,6 @@ function TiptapEditor({ doc, provider }: EditorProps) { Highlight, TaskList, TaskItem, - CharacterCount.configure({ - limit: 10000, - }), Collaboration.configure({ document: doc, }), diff --git a/package-lock.json b/package-lock.json index b8847a1..99e6b33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -74,7 +74,6 @@ "@rocicorp/reflect": "^0.38.202311200859", "@rocicorp/reflect-yjs": "0.0.1", "@tiptap/core": "^2.0.4", - "@tiptap/extension-character-count": "^2.0.4", "@tiptap/extension-collaboration": "^2.0.4", "@tiptap/extension-collaboration-cursor": "^2.0.4", "@tiptap/extension-highlight": "^2.0.4", @@ -1925,20 +1924,6 @@ "@tiptap/core": "^2.0.0" } }, - "node_modules/@tiptap/extension-character-count": { - "version": "2.1.13", - "resolved": "https://registry.npmjs.org/@tiptap/extension-character-count/-/extension-character-count-2.1.13.tgz", - "integrity": "sha512-FxPxS/Uqd4MgndInxXOcgNd225541Nsk1lT5e2uNTSNiQnG7dj7cSFG5KXGcSGLpGGt6e/E28WR6KLV+0/u+WA==", - "dev": true, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/ueberdosis" - }, - "peerDependencies": { - "@tiptap/core": "^2.0.0", - "@tiptap/pm": "^2.0.0" - } - }, "node_modules/@tiptap/extension-code": { "version": "2.1.12", "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-2.1.12.tgz", @@ -8121,13 +8106,6 @@ "dev": true, "requires": {} }, - "@tiptap/extension-character-count": { - "version": "2.1.13", - "resolved": "https://registry.npmjs.org/@tiptap/extension-character-count/-/extension-character-count-2.1.13.tgz", - "integrity": "sha512-FxPxS/Uqd4MgndInxXOcgNd225541Nsk1lT5e2uNTSNiQnG7dj7cSFG5KXGcSGLpGGt6e/E28WR6KLV+0/u+WA==", - "dev": true, - "requires": {} - }, "@tiptap/extension-code": { "version": "2.1.12", "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-2.1.12.tgz", @@ -10756,7 +10734,6 @@ "@rocicorp/reflect": "^0.38.202311200859", "@rocicorp/reflect-yjs": "0.0.1", "@tiptap/core": "^2.0.4", - "@tiptap/extension-character-count": "^2.0.4", "@tiptap/extension-code-block-lowlight": "^2.1.13", "@tiptap/extension-collaboration": "^2.0.4", "@tiptap/extension-collaboration-cursor": "^2.0.4",