Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Post editor: post title no longer appears in outline | GoodFirstPicks

Post editor: post title no longer appears in outline

WordPress/gutenberg 5 comments 8d ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeTest focusedWordPressJavaScriptReact

Why this is a good first issue

The issue involves handling interactions between iframed content and the main document.

AI Summary

The post title does not appear in the outline when the editor content is in an iframe, likely due to the outline's inability to locate the title input. A fix would require ensuring the outline can correctly identify and interact with the title block, potentially using `selectBlock`. The main blocker is the complexity of handling cross-document interactions.

Issue Description

Description

A previous issue here was solved, there's still one outstanding issue mentioned in https://github.com/WordPress/gutenberg/issues/47624#issuecomment-1411818909

The heading links in the post outline no longer work.

My hunch is that this is a result of using an iframe for the editor content. The links are implemented as standard anchor links, and since the headings are no longer part of the same document, they aren't focused when selecting a link.

A fix might be to implement a click event handler that calls selectBlock, like List View does.

Step-by-step reproduction instructions

  1. Open the Gutenberg Demo post
  2. Open the List View panel
  3. Navigate to the Outline tab
  4. Select one of the heading links

Expected: The block is selected in the canvas Actual: Nothing happens

Screenshots, screen recording, code snippet

Screen Shot 2023-02-01 at 9 26 18 am

Environment info

Brave browser on Mac OS Gutenberg trunk.

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

GitHub Labels

[Type] Bug[Priority] Low[Feature] Document Outline

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 20 points when you complete it!

Risk Flags

  • iframe context
  • cross-document interaction
Loading labels...

Details

Points20 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedyes