Skip to content

Commit

Permalink
refactor: onPaste preventDefault 시 기본 붙여넣기 안되는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn113 committed Feb 2, 2025
1 parent d93b8d6 commit fdb617d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web/src/components/passage/MarkdownEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ const MarkdownEditor = ({ examId, value, onChange }: MarkdownEditorProps) => {
rehypePlugins: [[rehypeSanitize]],
}}
onPaste={async (e) => {
e.preventDefault();
setIsImageLoading(true);
await handlePasteOrDrop(e.clipboardData);
setIsImageLoading(false);
Expand All @@ -80,7 +79,6 @@ const MarkdownEditor = ({ examId, value, onChange }: MarkdownEditorProps) => {
setDropText(dragOverText);
}}
onDragLeave={(e) => {
e.preventDefault();
setDropText(noDragOverText);
}}
/>
Expand Down

0 comments on commit fdb617d

Please sign in to comment.