Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: add persistent block type toolbar in page header#1929

Open
olivierlambert wants to merge 1 commit intodocmost:mainfrom
olivierlambert:feat/persistent-block-type-toolbar
Open

feat: add persistent block type toolbar in page header#1929
olivierlambert wants to merge 1 commit intodocmost:mainfrom
olivierlambert:feat/persistent-block-type-toolbar

Conversation

@olivierlambert
Copy link
Contributor

Summary

  • Add a block type selector and text alignment dropdown to the page header bar, positioned next to the Edit/Read toggle
  • Allows changing block types (text, headings, lists, blockquote, code) and text alignment without selecting text first
  • Only visible in edit mode; reuses existing NodeSelector and TextAlignmentSelector components

Rationale

Currently, changing a block's type (e.g. paragraph to heading, or text to bullet list) requires either selecting text to trigger the bubble menu, or using the / slash command on an empty line. This creates unnecessary friction for a very common editing action.

With this change, the block type and alignment controls are always accessible in the page header, making it faster and more discoverable to transform blocks, especially for users unfamiliar with slash commands.

feature

Add a block type selector and text alignment dropdown to the page
header bar, next to the Edit/Read toggle. This allows users to quickly
change block types (text, headings, lists, blockquote, code) and text
alignment without having to select text first to summon the bubble menu.

The toolbar reuses the existing NodeSelector and TextAlignmentSelector
components and is only visible in edit mode.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant