Skip to content

Page Content Focus: Default insertion point to the Post Content block#51773

Merged
noisysocks merged 2 commits intotrunkfrom
fix/page-content-focus-inserter
Jun 23, 2023
Merged

Page Content Focus: Default insertion point to the Post Content block#51773
noisysocks merged 2 commits intotrunkfrom
fix/page-content-focus-inserter

Conversation

@noisysocks
Copy link
Copy Markdown
Member

@noisysocks noisysocks commented Jun 22, 2023

What?

Follows #50857.

Makes it so that when you are focused on editing a page's content in the site editor and no block is selected, the global inserter will insert blocks into the end of the Post Content block.

Why?

This mimics the post editor and is what users would expect when editing page content.

How?

Adds a special case to the existing __experimentalGetInsertionPoint selector in the core/edit-site store.

Testing Instructions

  1. Go to Appearance → Editor.
  2. Select Pages.
  3. Click on a page to edit or create one.
  4. Select Edit.
  5. Open the global inserter.
  6. Select a block to insert.

Screenshots or screencast

Kapture.2023-06-22.at.11.35.40.mp4

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Feature] Page Content Focus Ability to toggle between focusing on editing the page and editing the template in the site editor. [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Bug An existing feature does not function as intended