Visual Editing

Click text in a Next.js preview to open the matching field in the Payload admin

Community 338/wk MIT v0.1.2

Installation

pnpm add @derweili/payload-visual-editing

About

Visual Editing lets editors click content on a live Next.js page and land on the exact field that feeds it in the Payload admin. Text values carry a hidden source reference, and images, numbers and other values get a tag the frontend can read. Clicking in Payload's Live Preview focuses the field in the same tab, and a plain link opens the document at that field in another tab.

The admin side opens the right tab, expands the array or block row, scrolls the field into view and highlights it, including the right locale on multilingual sites. Drafts only get the hidden references when a request asks for them, so published pages stay clean.

Package info

Package name
@derweili/payload-visual-editing
Latest version
0.1.2
Unpacked size
149 kB
License
MIT
Weekly downloads
338
Last publish
Nov 28, 2026

More from derweili

View profile

Hover outlines and Edit buttons on a frontend that open the matching field in the admin

Similar plugins

More in Admin

Lets admins sign in as another user to see exactly what that user sees

Finds access control and security holes in a Payload site, with severity-ranked alerts

Dated, scoped role grants for sites, organizations and projects, with an audit trail

Maintenance mode with a back-soon page and HTTP 503, switched from the admin

Feature flags with rollouts and A/B variants managed from the admin panel

Visual drag-and-drop page builder for Payload collections with live canvas editing