-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
HTML Block: Code shown in site editor browse mode #47819
Comments
I think the solution proposed by @mtias should fix this issue #41066 (comment). See also #46834. |
Another PR: #46836 As noted in this comment, relying on |
My other concern is that this block may not necessarily contain content. Perhaps this is not the intended use, but for example, the following code: If you preview this block, the block will be almost invisible: This border is also mentioned in #47818, but if this border were removed, the block would be completely invisible and one would not be able to click on the block directly. Personally, I think it is fine as it is now. |
The border has been removed, so I agree that I think the implementation is ok as is. Not ideal, but not a blocker for 6.2. |
I think we could solve this by using |
Description
The default view for the Custom HTML block is the HTML code editor mode.
When HTML blocks show up in the site editor in browse mode, they by default show their code, which isn't reflective of what browse mode is supposed to be—a reflection of the user's front-end.
Step-by-step reproduction instructions
Expected: The block's code isn't shown, the html preview is.
Actual: The block's code is shown
Screenshots, screen recording, code snippet
Environment info
Gutenberg
trunk
Brave / Mac OS
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
The text was updated successfully, but these errors were encountered: