diff --git a/docs b/docs index 9891c4d..077a803 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 9891c4d16aad6abd59b1a5364068d68caee89f30 +Subproject commit 077a8032c58ca3837e3753e0195ab29b36f9b706 diff --git a/web/app/dashboard/tickets/_components/edit.tsx b/web/app/dashboard/tickets/_components/edit.tsx index 354cc11..3aa19e1 100644 --- a/web/app/dashboard/tickets/_components/edit.tsx +++ b/web/app/dashboard/tickets/_components/edit.tsx @@ -7,9 +7,9 @@ import type { Resolver } from "react-hook-form" import { Controller, useForm } from "react-hook-form" import { z } from "zod/v4" +import { ContentEditor } from "@/components/content-editor" import { OptionCombobox } from "@/components/option-combobox" import { ProjectDialog } from "@/components/project-dialog" -import { RichTextEditor } from "@/components/rich-text-editor" import { isRichTextEmpty } from "@/components/safe-rich-html" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" @@ -375,11 +375,13 @@ function TicketEditDialogBody({ control={control} name="description" render={({ field }) => ( - field.onChange(next.raw)} placeholder="请输入问题描述" disabled={saving || loading} + allowedModes={["html"]} + height={260} /> )} /> diff --git a/web/app/dashboard/tickets/_components/ticket-detail-dialog.tsx b/web/app/dashboard/tickets/_components/ticket-detail-dialog.tsx index 2d427fd..2c1a58b 100644 --- a/web/app/dashboard/tickets/_components/ticket-detail-dialog.tsx +++ b/web/app/dashboard/tickets/_components/ticket-detail-dialog.tsx @@ -7,8 +7,8 @@ import { toast } from "sonner" import { type CustomerFormSavePayload } from "@/components/customer-form" import { CustomerFormDialog } from "@/components/customer-form-dialog" import { CustomerLinkOrCreateDialog } from "@/components/customer-link-or-create-dialog" +import { ContentEditor } from "@/components/content-editor" import { ProjectDialog } from "@/components/project-dialog" -import { RichTextEditor } from "@/components/rich-text-editor" import { isRichTextEmpty, SafeRichHTML } from "@/components/safe-rich-html" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" @@ -434,11 +434,13 @@ export function TicketDetailDialog({ 处理进展
- setProgressContent(next.raw)} placeholder="记录本次处理进展" disabled={progressSaving} + allowedModes={["html"]} + height={220} />