Skip to content
Available for new work
Pages in Blog

GuidePremium

The block editor in CoullWorks Blog for Laravel

How to add, edit, reorder, duplicate and delete blocks in the post editor, the block picker, nested blocks, the block limits, read-only blocks, previews and saving, with screenshots.

Updated 16 November 2026Back to the package pageBuy

A post body is a list of blocks. This page is about the editor that builds that list. What each block type does is on the three pages that follow: text blocks, media blocks and layout blocks. How blocks are stored and drawn is in Blocks and rendering, every field in one table is in the block fields reference, and writing your own block type is covered in the extending-blocks guide shipped in the package's docs folder. The post form around the blocks is in The post editor.

Add a block with the picker#

The block picker open over the new post form: a search box and the block types in three columns, grouped as media, text, navigation, layout, commerce and advanced

The picker over a new post. Block types are grouped, with a search box above them.

  1. Open Content, Posts, then New post or Edit on a post.
  2. On the Content tab, scroll to Blocks and press Add your first block. The label stays the same once the list has blocks in it; the button is always under the last block.
  3. Type in Search blocks to narrow the list, or pick from the groups. The groups come from the block types themselves: text (Heading, Text, Quote, Callout, Takeaways, FAQ, Table, Code), media (Image, Figure, Gallery, Video, Embed), layout (the three Banners, Section, Divider, Columns), navigation (Toc), commerce (Products, Cta) and advanced (Html).
  4. The new block is added at the end of the list, collapsed. Press the gear on its line to fill it in (see Edit a block).

A block type you list in coullworks-blog.blocks.disabled is not offered in the picker. A custom block type you register in coullworks-blog.blocks.custom appears in the group it names; the screenshot comes from the demo app, which registers an example Pricing table block and so shows a workbench group. A normal install has no such group.

The picker does not list the read-only placeholder: it only appears for a stored block the editor cannot edit (see Read-only blocks).

Edit a block#

The post editor with every block expanded: each block shows a preview card with its type and the values of its fields

Every block expanded (Expand all). Each one shows a preview card: the block type in capitals, then its fields with their values.

The list starts collapsed, one line per block: the block label and the start of its text, for example Heading: Start with the weather you expect. That keeps a long article readable as an outline. On each line:

ControlWhat it does
ArrowsDrag the block to a new place in the list.
GearOpens the block's form in an Edit block dialog. Press Save changes to keep your edits or Cancel to throw them away.
Copy iconDuplicates the block directly under itself. Use it to repeat a layout you have already filled in.
BinDeletes the block.
ChevronExpands or collapses the preview card under the line.

Above the list, Collapse all and Expand all close or open every preview card at once. The card is a preview of the block, drawn from a view in the package (resources/filament/views/previews/block.blade.php): the block label, then a line for every field that has a value, with long text cut short and a list shown as a count such as Items: 4 item(s). It is a summary, not the rendered block. To see the block as readers see it, use Preview.

Changes in the dialog are not saved to the post until you press the post's own Save (or autosave, see The post editor).

Nested blocks#

The Columns block form: a count select, then Column 1 to Column 3, each holding its own list of blocks

The Columns block form. Each column has its own block list with its own Add button.

The Section block form with a Children list holding a Heading and a Text block

The Section block form. Its Children list is a second block editor inside the first.

Two block types hold other blocks: Section (a children list) and Columns (a list of columns, each with its own blocks list). The rules, enforced both by the editor and by the server validator:

  • One level of container only. A Section or Columns block cannot hold another Section or Columns block, and neither can sit inside the other. Inside a container the picker simply does not list them.
  • A column holds at most 20 blocks. The number of columns is 2 to 4.
  • Nested blocks count towards the block limit, because the limit exists to cap the size of what the editor posts.
  • Nested blocks are edited in the same dialog: the Columns form lists each column with its own blocks (see below).
  • Reducing the Number of columns select never deletes a column that holds blocks. You get the notice "Those columns hold blocks" and you delete the column with its own bin, which asks "Delete this column?" first.

The Edit block dialog for a Columns block set to 3 columns, each column holding one Text block with its own Add your first block button

A Columns block with three columns. Each column holds one Text block (Footprint, Pegs, Repair kit) and has its own Add button.

The full field lists are in layout blocks.

The block limits#

There are two limits, and the smaller one is the one you meet.

LimitConfig keyDefaultApplies to
Editor limitcoullworks-blog.blocks.max_blocks200Blocks in one post body, nested blocks included. Both the editor and the validator enforce it.
Content ceilingcoullworks-blog.content.max_blocks500Content of any kind, including imports and the REST API, whatever the editor allows. There is also a size limit, content.max_bytes, 1,048,576 bytes by default.

The editor limit may not be higher than the ceiling. If you set it higher, the package refuses to boot with the message "coullworks-blog.blocks.max_blocks (N) cannot be higher than coullworks-blog.content.max_blocks (N)".

At the limit, the list stops offering Add your first block and the helper under it reads "Block limit reached (200 of 200). Remove a block to add another." (the numbers follow your setting). If a save still arrives over the limit, for example from the API, the error is "A document holds at most 200 blocks." The Settings screen repeats both numbers in plain words.

The end of a post holding 200 Text blocks: the last blocks are Block 195 of 200 to Block 200 of 200, and the line "Block limit reached (200 of 200). Remove a block to add another." sits under the list, above Save, Save and close and Cancel

A post at the editor limit of 200 blocks. The helper replaces the add control.

Tip. If you are near the limit, split the article, or use a Section or Columns block less: every nested block counts as one.

Read-only blocks#

A stored block the editor cannot edit is shown as Read-only block, with a lock icon, and saved back exactly as it was. That happens in two cases:

  • the block's type is not registered any more (a custom block type you removed, or a package you uninstalled), or
  • the block was saved by a newer version of the block type than the one installed.

The block form has two disabled fields: Block type (what it was) and Stored block (unchanged on save) (the stored JSON). You can move, duplicate or delete the block, but not edit it. On the Blade front end it draws nothing (in the local environment it leaves an HTML comment, cw: unknown block <type>). To get it back, reinstall the type or upgrade the package. A Read-only block row in the editor with a gear, a duplicate and a bin button, showing the type acme.legacy-pricing and its stored JSON

A stored block of an unregistered type, acme.legacy-pricing, version 2. The row shows its type, its label and the raw stored JSON.

A block of a disabled type is different: it is not read-only, it still validates, indexes and renders. Only the picker hides the type.

Preview and save#

The Preview panel over the post editor: the saved post drawn by the blog's own front end, with Desktop, Mobile and Open in a new tab above it

Preview opens beside the editor and draws the saved post with your blog's own front end.

Press Preview at the top of the edit screen. The panel says "The saved post, drawn by your blog's own front end. Save first to see recent changes." Switch between Desktop and Mobile, or choose Open in a new tab. It shows the post as last saved, so save before you preview a block you just changed.

At the bottom of the form, Save keeps you on the page, Save and close returns to the posts list, and Cancel leaves without saving. Under the form is the Revisions table (date, user, locale, source, number). Restoring a revision puts its blocks back; see Revisions.

Common mistakes#

  • Editing a block in the dialog and leaving the page without pressing the post's Save. The dialog's Save changes only updates the form.
  • Using a Section inside Columns or the other way round. The picker will not offer it, and a document that has it is refused.
  • Expecting the preview card in the list to match the page. Use Preview for that.
  • Changing blocks.max_blocks above content.max_blocks. The package refuses to start.

Block versions, the reference index and the JSON schema#

Each stored block has a version, v. When a block type changes shape, an upgrader turns old blocks into the new shape in memory whenever they are read; php artisan cwb:blocks:upgrade writes the upgraded blocks back. The media, product and link references that blocks hold are indexed into three tables (block_media_refs, block_product_refs, block_link_refs); php artisan cwb:blocks:reindex rebuilds them, and broken links show on the dashboard. GET api/blog/v1/schema/blocks returns the JSON Schema of every block type. Custom and disabled types are set in coullworks-blog.blocks.custom and coullworks-blog.blocks.disabled. All of these are described with their commands in Blocks and rendering and the commands reference.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.