⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
remove comments
daniel31x139ba9b06ae3b7
diff --git a/components/TextEditor.tsx b/components/TextEditor.tsxindex 75533a8a..5e98eeeb 100644--- a/components/TextEditor.tsx+++ b/components/TextEditor.tsx@@ -29,15 +29,14 @@ import Placeholder from "@tiptap/extension-placeholder";import Document from "@tiptap/extension-document";type Props = {- onSave?: () => void; // Make onSave optional+ onSave?: () => void;link?: LinkIncludingShortenedCollectionAndTags;className?: string;editable?: boolean;};-// Define the type for the exposed methods via refexport type TextEditorRef = {- getEditor: () => any; // Replace `any` with the actual editor type if available+ getEditor: () => any;};const TextEditor = forwardRef<TextEditorRef, Props>(@@ -88,7 +87,6 @@ const TextEditor = forwardRef<TextEditorRef, Props>(},});- // Expose the editor instance to the parent via refuseImperativeHandle(ref, () => ({getEditor: () => editor,}));