Skip to content

Commit

Permalink
Fix mime type of text/uri-list iOS clipboard data
Browse files Browse the repository at this point in the history
FIX: Fix the pasting of copied URIs in iOS.

Closes codemirror/dev#1350
  • Loading branch information
marijnh committed Mar 6, 2024
1 parent e094a92 commit e783cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ handlers.paste = (view: EditorView, event: ClipboardEvent) => {
view.observer.flush()
let data = brokenClipboardAPI ? null : event.clipboardData
if (data) {
doPaste(view, data.getData("text/plain") || data.getData("text/uri-text"))
doPaste(view, data.getData("text/plain") || data.getData("text/uri-list"))
return true
} else {
capturePaste(view)
Expand Down

0 comments on commit e783cf1

Please sign in to comment.