scorpio-99

payload better editor

by scorpio-99
Publishing workflow
v3
>=3.81.0
MIT

Overview

Summary generated from the README

Adds a live-preview iframe of your frontend next to a sidebar in the document edit view. Clicking a block in the preview opens its real Payload fields in the sidebar, so no schema duplication or custom components are needed. Requires Payload 3.81.0 or newer and React 19.

Features

  • Click a block in the preview to edit just that block's fields in the sidebar
  • Floating in-iframe toolbar to move, duplicate, add below or delete blocks
  • Desktop, tablet, mobile and drag-resizable responsive viewports with fullscreen
  • Undo and redo with keyboard shortcuts covering block changes
  • Settings global for sidebar position, hover colours, breakpoints and toolbar placement
  • Page, Blocks and Settings tabs derived from the document's tab structure

Use cases

  • Let editors modify a single page block while watching the live frontend preview
  • Give content teams a click-to-edit experience on block-based pages without a giant form

From the author

Block editor plugin for Payload CMS that adds a side-by-side live-preview iframe and sidebar to the edit view.

Installation

npm i payload-better-editor

119

Stars

6

Forks

2

Open Issues

2 months ago

Last Updated

1.0k

Weekly Downloads

v1.5.0

npm Version

696.1 KB

Unpacked Size

0

Dependencies

GitHub stars

119+29 since Sep 6

Show data
GitHub stars by day (UTC)
DateStars
Dec 5, 2026119
Dec 4, 2026119
Dec 3, 2026119
Dec 2, 2026119
Dec 1, 2026119
Nov 30, 2026119
Nov 29, 2026119
Nov 28, 2026119
Nov 27, 2026119
Nov 26, 2026119
Nov 25, 2026119
Nov 24, 2026119
Nov 23, 2026118
Nov 22, 2026118
Nov 21, 2026118
Nov 20, 2026118
Nov 19, 2026118
Nov 18, 2026118
Nov 17, 2026118
Nov 16, 2026118
Nov 15, 2026118
Nov 14, 2026117
Nov 13, 2026117
Nov 12, 2026117
Nov 11, 2026117
Nov 10, 2026116
Nov 9, 2026115
Nov 8, 2026115
Nov 7, 2026114
Nov 6, 2026114
Nov 5, 2026114
Nov 4, 2026114
Nov 3, 2026114
Nov 2, 2026114
Nov 1, 2026114
Oct 31, 2026114
Oct 30, 2026114
Oct 29, 2026114
Oct 28, 2026114
Oct 27, 2026114
Oct 26, 2026113
Oct 25, 2026113
Oct 24, 2026113
Oct 23, 2026113
Oct 22, 2026113
Oct 21, 2026112
Oct 20, 2026112
Oct 19, 2026112
Oct 18, 2026112
Oct 17, 2026112
Oct 16, 2026112
Oct 15, 2026112
Oct 14, 2026112
Oct 13, 2026111
Oct 12, 2026110
Oct 11, 2026109
Oct 10, 2026107
Oct 9, 2026104
Oct 8, 2026104
Oct 7, 2026104
Oct 6, 2026103
Oct 5, 2026101
Oct 4, 2026101
Oct 3, 2026101
Oct 2, 2026101
Oct 1, 2026100
Sep 30, 2026100
Sep 29, 2026100
Sep 28, 202699
Sep 27, 202697
Sep 26, 202696
Sep 25, 202696
Sep 24, 202695
Sep 23, 202695
Sep 22, 202695
Sep 21, 202694
Sep 20, 202694
Sep 19, 202694
Sep 18, 202694
Sep 17, 202694
Sep 16, 202693
Sep 15, 202692
Sep 14, 202692
Sep 13, 202691
Sep 12, 202691
Sep 11, 202691
Sep 10, 202690
Sep 9, 202690
Sep 8, 202690
Sep 7, 202690
Sep 6, 202690
npm weekly downloads

922−510 since Sep 6

Show data
npm weekly downloads by day (UTC)
DateWeekly downloads
Dec 5, 2026922
Dec 4, 2026826
Dec 3, 2026811
Dec 2, 20262,165
Dec 1, 20262,241
Nov 30, 20262,435
Nov 29, 20263,431
Nov 28, 20265,013
Nov 27, 20266,076
Nov 26, 20267,042
Nov 25, 20265,817
Nov 24, 20265,822
Nov 23, 20265,669
Nov 22, 20264,860
Nov 21, 20263,384
Nov 20, 20262,897
Nov 19, 20262,181
Nov 18, 20262,562
Nov 17, 20262,490
Nov 16, 20262,472
Nov 15, 20262,824
Nov 14, 20263,167
Nov 13, 20263,273
Nov 12, 20263,593
Nov 11, 20263,096
Nov 10, 20263,102
Nov 9, 20263,166
Nov 8, 20263,086
Nov 7, 20263,821
Nov 6, 20263,375
Nov 5, 20262,995
Nov 4, 20263,079
Nov 3, 20263,132
Nov 2, 20263,082
Nov 1, 20263,130
Oct 31, 20262,487
Oct 30, 20262,546
Oct 29, 20262,176
Oct 28, 20261,822
Oct 27, 20261,896
Oct 26, 20261,882
Oct 25, 20261,632
Oct 24, 20261,432
Oct 23, 20261,013
Oct 22, 20261,825
Oct 21, 20262,064
Oct 20, 20262,016
Oct 19, 20262,183
Oct 18, 20262,190
Oct 17, 20262,258
Oct 16, 20262,494
Oct 15, 20261,945
Oct 14, 20261,880
Oct 13, 20261,843
Oct 12, 20261,855
Oct 11, 20261,721
Oct 10, 20261,570
Oct 9, 20261,669
Oct 8, 20261,778
Oct 7, 20261,952
Oct 6, 20261,996
Oct 5, 20261,923
Oct 4, 20262,511
Oct 3, 20262,676
Oct 2, 20262,803
Oct 1, 20262,715
Sep 30, 20262,762
Sep 29, 20262,812
Sep 28, 20262,807
Sep 27, 20262,430
Sep 26, 20262,298
Sep 25, 20262,308
Sep 24, 20262,439
Sep 23, 20262,669
Sep 22, 20262,717
Sep 21, 20262,676
Sep 20, 20262,548
Sep 19, 20262,449
Sep 18, 20262,492
Sep 17, 20262,417
Sep 16, 20262,026
Sep 15, 20261,869
Sep 14, 20261,815
Sep 13, 20261,608
Sep 12, 20261,439
Sep 11, 20261,122
Sep 10, 2026966
Sep 9, 2026918
Sep 8, 2026939
Sep 7, 20261,109
Sep 6, 20261,432

Each point is npm's rolling 7-day download count.

Health Score

78/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1219456689-root.svg)](https://payloaddirectory.dev/plugins/1219456689-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1219456689-root"><img src="https://payloaddirectory.dev/badge/1219456689-root.svg" alt="Payload Directory"></a>
Updated Sep 24, 2026Created Apr 23, 2026Published Sep 24, 2026

README

payload-better-editor

npm downloads stars

Block editor plugin for Payload CMS that adds a side-by-side live-preview iframe and sidebar to the edit view.

Skip the giant form - pick a block, edit just that block

Open the editor from any document's edit view. The preview iframe loads your live frontend; clicking a block selects it and opens its real Payload fields in the sidebar - no schema duplication, no custom components.

Better Editor overview

Floating in-iframe toolbar

Hover any block in the preview to surface its floating action toolbar - move up, move down, duplicate, add-below, delete. All actions go through Payload's form state and are tracked by the plugin's undo/redo history.

Inline block toolbar

Viewports & layout controls

Switch between Desktop, Tablet, Mobile, and Responsive (drag-resizable). The fullscreen button is independent - it puts the whole editor (preview + sidebar) into fullscreen while the iframe keeps the viewport size you picked. The sidebar itself can be drag-resized to any width or collapsed entirely to give the preview the full canvas.

Viewport switcher and sidebar controls

Further features

  • Page, Blocks, Settings tabs auto-derived from your document's tab structure
  • BetterEditorSettings global so admins can change sidebar position, hover colours, tablet/mobile breakpoints, and hover-toolbar placement live - no re-deploy
  • Block actions in the sidebar too - the same move / duplicate / add-below / delete actions are mirrored in the sidebar's Blocks tab, so power users don't have to reach for the iframe toolbar
  • Undo and Redo with Cmd/Ctrl+Z and Cmd/Ctrl+Shift+Z - snapshot-based, covers every block mutation
  • Interact mode toggle so clicks pass through to forms, accordions, links inside the preview
  • Loading skeleton in the iframe and an error boundary so a single bad block can't take the admin down
  • Click-to-edit works at arbitrary nesting depth - clicking a deeply nested block walks up to its innermost wrapper
  • Real Payload fields in the sidebar via RenderFields, so custom field components, validations, and access control all just work

Install

pnpm add payload-better-editor

See DEVELOPERS.md for setup, plugin options, runtime settings, and architecture notes.

Requirements

  • Payload >=3.81.0
  • React 19

Found a bug? Early-stage plugin, feedback is appreciated. Open an issue with steps to reproduce, your Payload version, and a minimal example. PRs welcome.

Contributors

[image]

Similar plugins