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 setting default preview for HTML blocks #40913

Open
Gierand opened this issue May 8, 2022 · 4 comments · May be fixed by #41066
Open

Allow setting default preview for HTML blocks #40913

Gierand opened this issue May 8, 2022 · 4 comments · May be fixed by #41066
Labels
[Block] HTML Affects the the HTML Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@Gierand
Copy link

Gierand commented May 8, 2022

What problem does this address?

It is not possible to set the default state to preview mode for HTML blocks.

What is your proposed solution?

As we begin to brand our WordPress site within the FSE area of WordPress, it would be nice if the HTML blocks had a “mode” option to default its initial state to preview, rather than edit mode. This way we can get a “proper” visual of the site as we see it in FSE. Clicking preview mode on an HTML block every single time we are in FSE begins to become a distraction.

@amustaque97 amustaque97 added [Type] Enhancement A suggestion for improvement. [Block] HTML Affects the the HTML Block labels May 8, 2022
@mauriac mauriac linked a pull request May 13, 2022 that will close this issue
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label May 13, 2022
@Evakos
Copy link

Evakos commented Nov 11, 2022

I noticed that setting the HTML block to preview doesn't work anyway. In my case I had added Font Awesome icons like this: and also a . However converting it to a block does allow the preview although you have to then override the styling of .wp-block-code. So a temporary solution appears to be converting the block.

@mauteri
Copy link
Contributor

mauteri commented Jan 1, 2023

I put in a PR to make this change here: #46834

@wilnau-design
Copy link

+1

1 similar comment
@daviedR
Copy link
Contributor

daviedR commented Feb 10, 2024

+1

@mauriac mauriac removed their assignment Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] HTML Affects the the HTML Block [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants