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 code editor is available in template editing mode but only shows the post content #37320

Closed
carolinan opened this issue Dec 13, 2021 · 1 comment · Fixed by #37359
Closed
Assignees
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Status] In Progress Tracking issues with work in progress

Comments

@carolinan
Copy link
Contributor

Description

The code editor is available when editing a template in the template editor (accessed from the block editor).
The code editor shows the post content and the post title and nothing else -even if both blocks are removed from the template.

-I thought the code editor was not yet supported and that it was meant to be disabled both in template editing and the site editor.

Step-by-step reproduction instructions

  1. Activate a theme with support for template editing
  2. Go to the block editor.
  3. Create a new template.
  4. When inside the template editor, select Options -Code editor
  5. Compare the code in the code editor with the actual template.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 5.9-beta2-52361 via the beta tester plugin
With and without Gutenberg current trunk.

For the theme, I usedTwenty Twenty-Two and a classic PHP-based theme, underscores (_s), and added support for template editing.

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

Yes

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

No

@carolinan carolinan added the [Feature] Template Editing Mode Related to the template editor available in the Block Editor label Dec 13, 2021
@Mamaduka
Copy link
Member

That's correct. FSE currently doesn't support Code Editor mode, and we should probably disable it in Template Editing Mode since it doesn't work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Template Editing Mode Related to the template editor available in the Block Editor [Status] In Progress Tracking issues with work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants