diff --git a/src/app/(main)/activity/[semesterId]/[activityId]/boards/[boardId]/create-post/_components/form/Form.tsx b/src/app/(main)/activity/[semesterId]/[activityId]/boards/[boardId]/create-post/_components/form/Form.tsx
index f85196be..c6a23f05 100644
--- a/src/app/(main)/activity/[semesterId]/[activityId]/boards/[boardId]/create-post/_components/form/Form.tsx
+++ b/src/app/(main)/activity/[semesterId]/[activityId]/boards/[boardId]/create-post/_components/form/Form.tsx
@@ -1,12 +1,14 @@
'use client'
+import { useRef } from 'react'
import { useForm } from 'react-hook-form'
+import { Block } from '@blocknote/core'
import { zodResolver } from '@hookform/resolvers/zod'
import { useMutation } from '@tanstack/react-query'
+import dynamic from 'next/dynamic'
import { usePathname, useRouter } from 'next/navigation'
-import { PostContentFieldEditor } from '@/components/feature/post/create-post-form/editor'
import {
Button,
Form,
@@ -17,6 +19,7 @@ import {
Input,
Label,
Separator,
+ Skeleton,
useToast,
} from '@/components/ui'
import { queryClient } from '@/lib/query-client'
@@ -25,6 +28,14 @@ import { activityPostQuries, addActivityPostApi } from '@/service/api'
import { ActivityDateFieldDialog } from './date-field-dialog'
+const PostContentFieldEditor = dynamic(
+ () => import('@/components/feature/post/post-editor/EditorField'),
+ {
+ ssr: false,
+ loading: () => ,
+ },
+)
+
interface CreateActivityPostFormProps {
boardId: number
}
@@ -52,6 +63,31 @@ export const CreateActivityPostForm = ({
},
})
+ const imageMapRef = useRef