Upload image button

This commit is contained in:
2026-03-12 15:51:37 -05:00
parent 092e139f6e
commit 75723ed133
5 changed files with 127 additions and 55 deletions
+2
View File
@@ -27,6 +27,7 @@ import { Dropcursor } from "@tiptap/extension-dropcursor";
import { Mention } from "@tiptap/extension-mention";
import { userSuggestion, noteSuggestion } from "@/lib/mention-suggestion";
import { FileViewer } from "@/lib/extensions/file-viewer";
import { ImageUpload } from "@/lib/extensions/image-upload";
interface TaskEditorProps {
content?: string;
@@ -161,6 +162,7 @@ export const TaskEditor: Component<TaskEditorProps> = (props) => {
width: 2,
}),
FileViewer,
ImageUpload,
],
// Use untrack so the editor doesn't re-initialize when props.content changes
content: untrack(() => props.content) || "",