diff options
| author | joonhoekim <26rote@gmail.com> | 2025-07-28 12:10:39 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-07-28 12:10:39 +0000 |
| commit | 75249e6fa46864f49d4eb91bd755171b6b65eaae (patch) | |
| tree | f2c021f0fe10b3513d29f05ca15b82e460d79d20 /components/qna | |
| parent | c228a89c2834ee63b209bad608837c39643f350e (diff) | |
(김준회) 공통모듈 - Knox 결재 모듈 구현, 유저 선택기 구현, 상신 결재 저장을 위한 DB 스키마 및 서비스 추가, spreadjs 라이센스 환경변수 통일, 유저 테이블에 epId 컬럼 추가
Diffstat (limited to 'components/qna')
| -rw-r--r-- | components/qna/tiptap-editor.tsx | 16 |
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); |
