mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 10:07:22 +00:00
Backport #34755 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user