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

Code editor adds <br> to style #12668

Closed
vladaman opened this issue Dec 7, 2018 · 5 comments
Closed

Code editor adds <br> to style #12668

vladaman opened this issue Dec 7, 2018 · 5 comments
Labels
[Feature] Code Editor Handling the code view of the editing experience [Type] Bug An existing feature does not function as intended

Comments

@vladaman
Copy link

vladaman commented Dec 7, 2018

When using new Code Editor, it adds
tags into style tag.

screenshot from 2018-12-07 08-40-45

@swissspidy swissspidy added [Feature] Code Editor Handling the code view of the editing experience Needs Testing Needs further testing to be confirmed. labels Dec 7, 2018
@UserBOE
Copy link

UserBOE commented Dec 8, 2018

Yes, having the exact same issue on my site. It's really screwing up pages and posts.

@TimothyBJacobs
Copy link
Member

Have you tried putting your styles inside the Custom HTML block?

@youknowriad
Copy link
Contributor

I confirm the issue but I noticed that I had the same issue with the classic editor too. And yes using the custom HTML block seems like a good workaround (I confirmed it works)

@youknowriad youknowriad added [Type] Bug An existing feature does not function as intended and removed Needs Testing Needs further testing to be confirmed. labels Apr 22, 2019
@youknowriad
Copy link
Contributor

So this looks like a duplicate of #9056 though

@ghost
Copy link

ghost commented May 22, 2020

remove_filter('the_content', 'wpautop');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Code Editor Handling the code view of the editing experience [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

5 participants