From 75249e6fa46864f49d4eb91bd755171b6b65eaae Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 28 Jul 2025 12:10:39 +0000 Subject: (김준회) 공통모듈 - Knox 결재 모듈 구현, 유저 선택기 구현, 상신 결재 저장을 위한 DB 스키마 및 서비스 추가, spreadjs 라이센스 환경변수 통일, 유저 테이블에 epId 컬럼 추가 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/qna/tiptap-editor.tsx | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'components/qna') 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 { const formData = new FormData(); formData.append('file', file); -- cgit v1.2.3