Stop hunting for fields. Click the page ✎ Edit instead.
Which tab was it? Which block, which row? Your editors stop guessing. They click any text, image or number on the page, and Payload opens the exact field.
Hero
Live Preview · same tab
Click to edit
Hover any content in the preview, click "Edit", and the admin opens the document with the field focused. Tabs open and rows expand on the way.
Works in Live Preview
Inside Payload's Live Preview the click focuses the field right next to the page, in the same tab, via a versioned postMessage handshake.
Text, images, numbers
Text carries an invisible source map. Images, numbers, selects, dates and relationships carry data attributes via fieldAttrs().
Draft Mode only
Encoding is opt-in per request and only for logged-in drafts. Published pages stay byte-for-byte clean.
Multilingual, tested
Works with Payload localization. The click carries the page's locale, so the admin opens the field in that language. Covered by the end-to-end tests.
Agent-ready
Ships agent skills, so Claude Code, Cursor or Codex can set it up — and keep following the rules afterwards.
For editors
See it. Click it. Fix it.
No more memorising which tab, block or array row holds a sentence. Start from the page your readers see.
- ● Draft Mode01
Open the preview
From the document in Payload, open the preview in its own tab or use Live Preview next to the form.
- Jonas Weber ✎ Edit02
Click what you want to change
Hover any headline, text, image or number. It gets an outline and an "Edit" button. Click it.
- NameJonas Weber|03
Edit the field
Payload opens the right tab, expands the right row and puts the cursor in the field — in Live Preview, without leaving the page.
For developers · Under the hood
Every draft value knows where it came from.
No IDs to wire up by hand. The source travels with the content — from the Payload read to the rendered page and back to the admin.
payload.findByID({ collection: 'pages', id, draft, context: { encodeSourceMaps: draft },})Payload adds a source map to draft reads
With encodeSourceMaps, the plugin appends an invisible ref to every text value: collection, document, field path and locale. Images, numbers and dates get a source tag you render with fieldAttrs().
{draft && <VisualEditing />}The overlay finds the refs on the page
<VisualEditing /> decodes the refs in the rendered DOM and draws the outline and the "Edit" button. Only in Draft Mode — published pages carry nothing extra.
/admin/collections/pages/1 ?field=team.1.nameThe admin focuses the field
Standalone, the button opens a deep link. Inside Live Preview it sends a postMessage instead. The admin opens tabs, expands rows and focuses the input.
For developers · Get started
Set up in minutes.
Install two packages, add the plugin, mount the overlay in Draft Mode. The getting started guide walks through every step, including the preview route and stegaClean.
Builds on Payload's own preview: for clicks inside the Live Preview, set up Payload's Live Preview first. More
Or let your agent do it
$ npx skills add derweili/payload-visual-editingThen ask: "Set up Payload visual editing in this project." More in AI-assisted setup.
pnpm add @derweili/payload-visual-editing \ @derweili/payload-visual-editing-overlayScope
Built for real content models.
Deep paths through tabs, groups, arrays and blocks, in collections and globals, localized or not. Plus an honest list of what it doesn't do yet.
Supported
text,textareaand LexicalrichText- Arrays, groups, named and unnamed tabs, collapsibles, rows, blocks
- Multilingual sites: localized fields in collections and globals, tested end to end
- Images, numbers, relationships, selects and dates via source tags
- Preview in its own tab and Payload's Live Preview
- Cloudflare Workers (no Node-only APIs)
Not (yet)
- Inline editing on the page
- Drag & drop or adding blocks from the preview
- Highlighting in the preview when a field is focused in the admin
- Tested frontends other than Next.js (the vanilla overlay is framework-agnostic)
Give your editors the shortcut ✎ Shortcut.
Open source · MIT · Payload 3.94+ · Next.js 15.4+ or 16 · React 19