Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Document Outline no longer shows the title #68660

Closed
3 of 6 tasks
carolinan opened this issue Jan 14, 2025 · 2 comments
Closed
3 of 6 tasks

The Document Outline no longer shows the title #68660

carolinan opened this issue Jan 14, 2025 · 2 comments
Labels
[Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Type] Bug An existing feature does not function as intended

Comments

@carolinan
Copy link
Contributor

carolinan commented Jan 14, 2025

Description

The Document Outline feature in the List View no longer shows the post title.
The title used to show above the list of headings.

The code that I believe is intended to show the title has three checks:

  1. Wether the post type supports titles
  2. The value of the title
  3. Wether an element with the class name editor-post-title__input can be found

The element with the class name editor-post-title__input is the item you click on to enter or update a title for the post or page.
And my guess may be wrong but I think the check fails because now the block editor is in an iframe?


Alternatively, if the title should no longer show in this view, the "dead" code should be removed.

Step-by-step reproduction instructions

Edit a post or page that has a title.

Open the List View.
Open the Document Outline tab

Confirm that the title is not showing in the document outline.

Screenshots, screen recording, code snippet

An older screenshot of the Document Outline:

Image of the document outline with the title present Screenshot borrowed from https://github.com//issues/50280

A current screenshot of the Document Outline, with the title missing:
Image of the document outline with the title missing

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@carolinan carolinan added [Type] Bug An existing feature does not function as intended [Feature] Document Outline An option that outlines content based on a title and headings used in the post/page labels Jan 14, 2025
@patil-vipul
Copy link

@carolinan I'm able to reproduce the issue as shown below.

Image

I'll analyze the checks as you've mentioned if they are affected by the iframe

@Mamaduka
Copy link
Member

This is a duplicate of #47624. Here's a most recent attempt to fix the issue, though the iframed canvas makes it a bit complicated - #48124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants