From 699e8a07d2062b1e398945fc8ff5c112c7247d60 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Sat, 18 Apr 2026 02:10:55 +0000
Subject: [PATCH] Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
---
src/components/forms/custom-form-builder.tsx | 57 +++++++++++++++++++-
1 file changed, 56 insertions(+), 1 deletion(-)
diff --git a/src/components/forms/custom-form-builder.tsx b/src/components/forms/custom-form-builder.tsx
index 743c7e0..0e66821 100644
--- a/src/components/forms/custom-form-builder.tsx
+++ b/src/components/forms/custom-form-builder.tsx
@@ -238,6 +238,12 @@ export function CustomFormBuilder() {
const [caseSearch, setCaseSearch] = useState("");
const [saveFormat, setSaveFormat] = useState<"pdf" | "docx">("pdf");
+ // Insert-table dialog
+ const [tableDialogOpen, setTableDialogOpen] = useState(false);
+ const [tableRows, setTableRows] = useState(3);
+ const [tableCols, setTableCols] = useState(3);
+ const [tableHeader, setTableHeader] = useState(true);
+
const editor = useEditor({
extensions: [
StarterKit.configure({ heading: { levels: [1, 2, 3] }, paragraph: false }),
@@ -977,7 +983,7 @@ export function CustomFormBuilder() {
-
+ setTableDialogOpen(true)}>
+ editor?.chain().focus().deleteRow().run()}
+ >
+
+
+ editor?.chain().focus().deleteColumn().run()}
+ >
+
+
editor?.chain().focus().deleteTable().run()}
>
+
+ toggleCellBorder("t")}
+ >
+ ▔
+
+ toggleCellBorder("r")}
+ >
+ ▕
+
+ toggleCellBorder("b")}
+ >
+ ▁
+
+ toggleCellBorder("l")}
+ >
+ ▏
+
+ setAllCellBorders(true)}
+ >
+
+
+ setAllCellBorders(false)}
+ >
+
+