diff --git a/src/MarkdownTextInput.web.tsx b/src/MarkdownTextInput.web.tsx index 5cb0d067..801eb0cd 100644 --- a/src/MarkdownTextInput.web.tsx +++ b/src/MarkdownTextInput.web.tsx @@ -519,8 +519,13 @@ const MarkdownTextInput = React.forwardRef( [onClick, updateSelection], ); - const handlePaste = useCallback(() => { + const handlePaste = useCallback((e) => { pasteRef.current = true; + e.preventDefault(); + + const clipboardData = e.clipboardData; + const text = clipboardData.getData('text/plain'); + document.execCommand('insertText', false, text); }, []); const startComposition = useCallback(() => {