summaryrefslogtreecommitdiff
path: root/components/qna/tiptap-editor.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/qna/tiptap-editor.tsx')
-rw-r--r--components/qna/tiptap-editor.tsx16
1 files changed, 0 insertions, 16 deletions
diff --git a/components/qna/tiptap-editor.tsx b/components/qna/tiptap-editor.tsx
index 4ab7f097..5d0a84e9 100644
--- a/components/qna/tiptap-editor.tsx
+++ b/components/qna/tiptap-editor.tsx
@@ -135,22 +135,6 @@ export default function TiptapEditor({ content, setContent, disabled, height = "
},
})
- // 이미지 크기 확인 함수
- const getImageDimensions = (src: string): Promise<{ width: number; height: number }> =>
- new Promise((resolve, reject) => {
- // 1. 올바른 생성자
- const img = new Image();
-
- // 2. 로딩 완료 시 naturalWidth/Height 사용
- img.onload = () => {
- resolve({ width: img.naturalWidth, height: img.naturalHeight });
- };
-
- img.onerror = () => reject(new Error('이미지 로드 실패'));
- img.src = src; // 3. 마지막에 src 지정
- });
-
-
async function uploadImageToServer(file: File): Promise<string> {
const formData = new FormData();
formData.append('file', file);