How Notion copies text and HTML
A trace of Notion's Electron clipboard bridge from the page through preload and IPC to the main process.
The full story
An REA showcase tracing what happens when you copy something in Notion's desktop app. The web page calls clipboard.write, but that's only a wrapper. REA finds where the API is exposed in the minified preload script and the internal message it sends (notion:clipboard:write). The agent then follows that name into the main process that actually writes to the system clipboard.
Four short, cleaned-up code excerpts show each step. There's also a look at Notion's rich clipboard format, which carries both plain text and HTML.
How it was done
Tools
Themes
Loading themes…
Sources
From the maker's own write-up or code. We summarise what they report; we haven't tested it ourselves.
- Awesome REA list: How Notion copies text and HTML
The showcase with the prompt, REA's findings and the four code excerpts.