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

Allow Code Editor for Templates #36966

Closed
palmsout opened this issue Nov 29, 2021 · 1 comment
Closed

Allow Code Editor for Templates #36966

palmsout opened this issue Nov 29, 2021 · 1 comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed

Comments

@palmsout
Copy link

palmsout commented Nov 29, 2021

What problem does this address?

I often find myself needing to see the underlying code generated by the block editor when editing templates. I know this was possible at some point, but it's not letting me do so now. I thought this was possible in the Site Editor, but a previous comment here tells me it was never possible. Maybe I used to be able to do it using the Classic Editor, but now when I try to open a template in the classic editor, it forces me back to the block editor. Or maybe this used to be possible in Customizer? I'm not getting the option to do so now.

Either way, this is something that would be really useful to me, and I suspect many. Especially useful when making small changes to margins, custom classes, and html in the custom html block, and also for speed (the block editor can still be slow). This might also be useful for those times when the save button is not activated by edits to custom html blocks (I often have to add a blank paragraph and delete it again to get the option to save). It would also be a useful way to be able to clone a template, by simply copying all of the generated code and then pasting it into a new template.

What is your proposed solution?

As you might suspect, I'm no expert, but I simply propose allowing for the code editor to be an available option when editing a template in the Site Editor, as it is when editing a post or page. There may have been context around why this wasn't done in the first place, but I haven't been able to find a thread addressing it here.

@skorasaurus skorasaurus added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Dec 1, 2021
@skorasaurus
Copy link
Member

skorasaurus commented Dec 1, 2021

Hi,

Thanks for reporting; (I personally agree as well and miss it).
This has been discussed and/or requested in #22528. Feel free to add your reaction and follow its progress in that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed
Projects
None yet
Development

No branches or pull requests

2 participants