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

Bug: Template Editor switches to Content Editor after adding a new block #78131

Closed
liviopv opened this issue Jun 13, 2023 · 2 comments
Closed
Labels
[Closed] Fixed Issues explicitly fixed with PRs. Do not use for no longer reproducible issues. Gutenberg RC Testing [Platform] Simple [Pri] BLOCKER [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug

Comments

@liviopv
Copy link

liviopv commented Jun 13, 2023

Quick summary

When using the new content X template editing experience introduced in WordPress/gutenberg#49980, I ran into a very fraught experience when trying to add a new block into a template. While in Template Editing mode, using the "Add Before"/"Add After" options to add new blocks will add the block, but it will also switch the editing experience to the Content Editing mode.

Since the block was added to the Template, it can't be edited while in Content Editing mode. When switching again to Template Editing, typing anything will revert back to Content Editing.

Steps to reproduce

  1. Start at Appearance > Editor > Pages
  2. Open a page to edit
  3. Click on the Page tab in the right sidebar
  4. Click on "Edit template"
  5. Select any block in the template and use the block toolbar to "Insert Before"/"Insert After"
  6. The editor switches back to page content editing unexpectedly.

What you expected to happen

The behavior in core is like this:

CleanShot.2023-06-13.at.15.37.50.mp4

What actually happened

Trying to edit a block added to the template switches the editing experience back to content editing.

CleanShot.2023-06-13.at.15.34.09.video-converter.com.mp4

Impact

Some (< 50%)

Available workarounds?

No and the platform is unusable

Platform (Simple and/or Atomic)

Simple

Logs or notes

Gutenberg 16 RC 4

@liviopv liviopv added [Type] Bug User Report This issue was created following a WordPress customer report Needs triage Ticket needs to be triaged Gutenberg RC Testing [Pri] BLOCKER labels Jun 13, 2023
@github-actions github-actions bot added [Platform] Simple [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts labels Jun 13, 2023
@cuemarie
Copy link

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

  • Tested on Simple – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO

  • Replicated as described. Editing from Appearance > Editor > Templates > Page works fine, but if I am working within the Content editor, and then move to add something to a template, I can no longer add/edit blocks on the template, it keeps switching me back to the content editor, where I then can't edit what's added to the template.

Testing on free Edge site:

  • Gutenberg: v16.0.0-rc.5
  • Editing Toolkit: 3.68337
  • WP AMP: 2.0.5
  • CoBlocks: 2.18.1-simple-rev.4

Screenshots/Recordings

4ZIQEi.mov

📌 ACTIONS

  • Scrubbed, awaiting assignment
  • Returned priority to BLOCKER

📌 Message to Author

  • Thanks @liviopv for reporting and escalating this here: p1686682258996299-slack-CBTN58FTJ

@cuemarie cuemarie added [Pri] BLOCKER Triaged To be used when issues have been triaged. and removed [Pri] High User Report This issue was created following a WordPress customer report Needs triage Ticket needs to be triaged labels Jun 13, 2023
@cuemarie
Copy link

📌 UPDATE

  • Active investigation happening here: p1686677477797309-slack-CBTN58FTJ

📌 ACTIONS

  • Moving to OTHER

@cuemarie cuemarie added the [Closed] Fixed Issues explicitly fixed with PRs. Do not use for no longer reproducible issues. label Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Closed] Fixed Issues explicitly fixed with PRs. Do not use for no longer reproducible issues. Gutenberg RC Testing [Platform] Simple [Pri] BLOCKER [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug
Projects
None yet
Development

No branches or pull requests

3 participants