kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { useTranslation } from "react-i18next";
2import CommentEditor from "@/components/activity/comment-editor";
3
4type TaskDescriptionEditorProps = {
5 value: string;
6 onChange: (value: string) => void;
7 placeholder?: string;
8 taskId?: string;
9 ensureTaskId?: () => Promise<string | null>;
10};
11
12export default function TaskDescriptionEditor({
13 value,
14 onChange,
15 placeholder,
16 taskId,
17 ensureTaskId,
18}: TaskDescriptionEditorProps) {
19 const { t } = useTranslation();
20
21 return (
22 <CommentEditor
23 value={value}
24 onChange={onChange}
25 placeholder={placeholder ?? t("tasks:detail.addDescription")}
26 taskId={taskId}
27 ensureTaskId={ensureTaskId}
28 uploadSurface="description"
29 className="[&_.kaneo-comment-editor-content_.ProseMirror]:min-h-[11rem] [&_.kaneo-comment-editor-content_.ProseMirror]:max-h-none [&_.kaneo-comment-editor-content_.ProseMirror]:overflow-visible [&_.kaneo-comment-editor-content_.ProseMirror]:px-0 [&_.kaneo-comment-editor-content_.ProseMirror]:pt-1 [&_.kaneo-comment-editor-content_.ProseMirror]:pb-2"
30 />
31 );
32}