Fix readme path and markdown link paste (#34755)

This commit is contained in:
wxiaoguang authored and GitHub committed 2025-06-18 04:19:54 +00:00
1 parent 08c634b7b7
commit b38813878c
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ function handleClipboardText(textarea: HTMLTextAreaElement, e: ClipboardEvent, p
// when pasting links over selected text, turn it into [text](link)
const pastedAsMarkdown = pasteAsMarkdownLink(textarea, pastedText);
if (pastedText) {
if (pastedAsMarkdown) {
e.preventDefault();
replaceTextareaSelection(textarea, pastedAsMarkdown);
}