fix: support native clipboard image paste on mobile (#181)

Co-authored-by: Khushvendra <khushvendras99@gmail.com>
Co-committed-by: Khushvendra <khushvendras99@gmail.com>
This commit is contained in:
2026-04-11 16:38:06 +00:00
committed by hodlbod
parent 90f86b833d
commit f6d9e52c6e
4 changed files with 100 additions and 0 deletions
+2
View File
@@ -15,6 +15,7 @@ import {
} from "@welshman/app"
import type {FileAttributes} from "@welshman/editor"
import {Editor, MentionSuggestion, WelshmanExtension, editorProps} from "@welshman/editor"
import {NativeClipboardPasteExtension} from "@app/editor/clipboard"
import {escapeHtml} from "@lib/html"
import {makeMentionNodeView} from "@app/editor/MentionNodeView"
import ProfileSuggestion from "@app/editor/ProfileSuggestion.svelte"
@@ -137,6 +138,7 @@ export const makeEditor = async ({
},
},
}),
NativeClipboardPasteExtension,
],
onUpdate({editor}) {
wordCount?.set(editor.storage.wordCount.words)