mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-11-21 19:04:56 +01:00
For content copied from another app, WebKitGTK's navigator.clipboard.read() often returns nothing, or only text/plain, while Ctrl+V still receives the HTML. The context menu then pasted plain text and lost bold, links and other formatting. Whatever the web clipboard leaves out is now filled in from the native clipboard. The new read_clipboard_contents command (replacing read_clipboard_text) returns both text and HTML through arboard. The result is replayed through the same paste handlers as Ctrl+V. That includes the WebKitGTK image fallback for an <img>-only clipboard. The direct native image read only runs when there is no text or HTML.