Directory

Code editor mode only allows template (not content) editing when editing a "Page" with the site editor · Issue #61731 · WordPress/gutenberg · GitHub
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

Code editor mode only allows template (not content) editing when editing a "Page" with the site editor #61731

Closed
bacoords opened this issue May 16, 2024 · 0 comments · Fixed by #61934
Assignees
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@bacoords
Copy link
Contributor

Description

If you jump into the code editor mode while editing a page, you'll only see the template markup. This happens regardless of whether the template preview mode is on or off.

In either case, using the code editor while editing a 'page' should allow you to edit the page not the template.

CC @youknowriad

Step-by-step reproduction instructions

  1. Enter the site editor
  2. Go to pages and select a page like "Sample Page"
  3. Switch to code editor and see the code for the template, not the page
  4. Disable "Template preview" in the inspector controls
  5. Switch to code editor again and see the code for the template, not the page, even though the template isn't even visible

Screenshots, screen recording, code snippet

screenrec.mov

Environment info

  • Gutenberg 18.3.0

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

@bacoords bacoords added the [Type] Bug An existing feature does not function as intended label May 16, 2024
@jordesign jordesign added the [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") label May 16, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants