Skip to content

Commit e8fe809

Browse files
committed
Merge branch 'fix/paste-cursor-position' into dev
2 parents a53f407 + 893475b commit e8fe809

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/app/src/components/prompt-input/attachments.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,6 @@ export function createPromptAttachments(input: PromptAttachmentsInput) {
103103

104104
if (!plainText) return
105105

106-
if (largePaste(plainText)) {
107-
if (input.addPart({ type: "text", content: plainText, start: 0, end: 0 })) return
108-
input.focusEditor()
109-
if (input.addPart({ type: "text", content: plainText, start: 0, end: 0 })) return
110-
}
111-
112-
const inserted = typeof document.execCommand === "function" && document.execCommand("insertText", false, plainText)
113-
if (inserted) return
114-
115106
input.addPart({ type: "text", content: plainText, start: 0, end: 0 })
116107
}
117108

0 commit comments

Comments
 (0)