-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Custom HTML block: Preview styles do not match the rest of the editor #9129
Comments
I don't have an issue with consistency here in styling. Want to create a PR? |
@karmatosed I don't know how. 😞 I haven't finished reading https://git-scm.com/book/en/v2/ yet. Anyway, it looks like the Custom HTML block uses an Note also that this relates to #9008. |
@ZebulanStanphill no worries at all and keep at the learning, it's great to see. I am sure someone can help with this. |
I am noticing the same issue I think. I created an editor-style.css and applied it using 'enqueue_block_editor_assets' hook. but it does not affect the html block preview mode. |
This also landed on our radar, because we are trying to get our Custom Elements to render inside HTML block preview as normal, but in order for that to happen, Did anybody take a look at the HTML block implementation details yet to understand what needs to patched how to get custom assets enqueued inside the |
WP46118 was closed as a duplicate. |
@saltnpixels it should work if you |
Just fixed this issue in one of my themes yesterday: In addition to the steps mentioned by @tellthemachines, I had to remove a wrapping |
Reported here too: https://core.trac.wordpress.org/ticket/48211 |
@tellthemachines isn't there a way to get this to work without enqueuing styles with |
The issue
The styling used for the preview mode of the Custom HTML block do not match the rest of the editor.
Steps to reproduce
Expected behavior
The preview mode of the Custom HTML block should use styling that looks like the rest of the editor.
Related issues and PRs
The text was updated successfully, but these errors were encountered: