-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Post editor: post title no longer appears in outline #47624
Comments
I can confirm as well. Moving this to "Todo" for 6.2. |
To give focus to a block when an item is clicked, I think this could be accomplished with The title item is similarly implemented with standard anchor links, but the post title no longer has an id attribute. Therefore, the anchor link in the title item would not work even in the Classic theme where the editor content resides in the same document. Also, |
Removing this from WP 6.2 project board since the editor will not be iframed in the core. |
Description
A previous issue here was solved, there's still one outstanding issue mentioned in #47624 (comment)
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 callsselectBlock
, like List View does.Step-by-step reproduction instructions
Expected: The block is selected in the canvas
Actual: Nothing happens
Screenshots, screen recording, code snippet
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
The text was updated successfully, but these errors were encountered: