Bug 463361 - Rich copy/paste support
Summary: Rich copy/paste support
Status: CONFIRMED
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: megan.conkle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-22 21:27 UTC by megan.conkle
Modified: 2026-01-29 19:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description megan.conkle 2022-12-22 21:27:20 UTC
When pasting from a rich text source like HTML, LibreOffice Writer or Google Doc, it'd be great if the pasted result in Ghostwriter applied any formatting already present in the source text.
Comment 1 Basil Crow 2026-01-29 19:52:45 UTC
+1, would be great if this could be implemented. Ghostwriter could

- Detect clipboard formats via Qt (e.g., `QClipboard::mimeData()`)
- If `text/html` exists (e.g., `mimeData->hasHtml()`), fetch it (e.g., `html = mimeData->html()`) and convert it with e.g. `pandoc -f html -t gfm` (or `-t commonmark`)
- Insert converted Markdown into the editor

If Pandoc isn't installed or fails, we can fall back to normal paste