Skip to content

Curate the Cortext block picker#277

Merged
priethor merged 7 commits into
mainfrom
priethor/fix/cortext-editor-integration-gaps
May 28, 2026
Merged

Curate the Cortext block picker#277
priethor merged 7 commits into
mainfrom
priethor/fix/cortext-editor-integration-gaps

Conversation

@priethor

@priethor priethor commented May 28, 2026

Copy link
Copy Markdown
Collaborator

What

Part of #85.

Cortext now keeps the block picker to the set of blocks we want in documents. Cortext blocks get their own category, locked header blocks still work behind the scenes, and blocks added by other plugins do not show up unless we add them to the list.

Why

Gutenberg's default picker is too broad for this editor. It includes site blocks, feeds, Query Loop pieces, and post-context blocks that either do not belong in Cortext or would render badly here. Plugin-added blocks can add more clutter, so this gives us a picker we control.

How

  • Passing the same allowed-block settings into Canvas and row editors.
  • Registering the Cortext category before Cortext blocks load.
  • Keeping locked header blocks available to Cortext while hiding them from the picker.

Allowed blocks:

  • Cortext: cortext/data-view, cortext/document-icon, cortext/document-cover, cortext/document-properties.
  • Text and structure: core/paragraph, core/heading, core/list, core/list-item, core/quote, core/pullquote, core/verse, core/code, core/preformatted, core/html, core/math, core/footnotes, core/details, core/post-title.
  • Media: core/image, core/gallery, core/video, core/audio, core/file, core/cover, core/media-text.
  • Layout: core/columns, core/column, core/group, core/separator, core/spacer.
  • Interactive: core/button, core/buttons, core/accordion, core/accordion-item, core/accordion-heading, core/accordion-panel, core/social-link, core/social-links.
  • Utility: core/table, core/embed, core/table-of-contents, core/icon.
  • Document metadata: core/post-date, core/post-time-to-read.
  • Reusable: core/pattern, core/block.

Testing Instructions

  1. Open a Cortext page or row editor.
  2. Open the block inserter.
  3. Confirm document blocks and Cortext blocks are available.
  4. Search for blocks like Latest Posts, RSS, Navigation, and Query Loop, and confirm they do not appear.
  5. Confirm an existing document still shows its title/header normally.

@priethor priethor added the type: enhancement Improvement to existing behavior. label May 28, 2026
@priethor priethor marked this pull request as ready for review May 28, 2026 11:18
@priethor priethor added this to the 0.1.0 milestone May 28, 2026
@priethor priethor merged commit 8513323 into main May 28, 2026
10 checks passed
@priethor priethor deleted the priethor/fix/cortext-editor-integration-gaps branch May 28, 2026 11:18
@priethor priethor linked an issue May 28, 2026 that may be closed by this pull request
8 tasks
@priethor priethor mentioned this pull request May 28, 2026
8 tasks
@priethor priethor added the area: canvas Block editor canvas, blocks, inspector, covers, icons, and document chrome. label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: canvas Block editor canvas, blocks, inspector, covers, icons, and document chrome. type: enhancement Improvement to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Cortext editor integration gaps

1 participant