-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Editor: Conflict with Calypso and Gutenberg and paragraph tags #21973
Comments
I initially thought this was applied on API Side, which it still might be. However, looking at the API, the paragraph tags do not even reach the endpoint. This can be confirmed by adding in paragraph tags in HTML mode, and then switching to Visual and back to HTML and the tags are removed. |
I believe there is a conflict between Gutenberg 2.1.0 and Jetpack 5.8. Downgrading Gutenberg to 2.0.0 resolves. Also deactivating Jetpack 5.8 resolves. To reproduce:
See quick screencast walkthrough: https://vimeo.com/255795293/bd24079e24 |
@austinginder thanks, that issue was hopefully fixed in Gutenberg 2.3.0 which was released yesterday. Please try it out and let me know if it fixes the issue for you. Here is the relevant Gutenberg PR WordPress/gutenberg#5288 |
I think this issue may be related: WordPress/gutenberg#10376 I'm closing the other as it seems to be calypso-specific |
Re missing p tags, @mkaz Isn't the issue that we're not running How Paragraphs are SerializedFor more context, classic posts made in the WordPress wp-admin editor and Calypso, stores content in a simpler format: ClassicOn the server we'll see paragraphs noted by two line breaks:
When the editor loads, it runs content through this function which adds p tags:
And likewise before save on the client, we remove them again:
The server will also run So we'll see the following in the published view:
GutenbergBut what do Gutenberg paragraphs look like? The client and server both show and store the following:
The published view does not display these HTML comments:
|
I also ran into this; wrote a post in Gutenberg wp-admin, edited in Calypso (because that's what the edit link leads to), then paragraphs were gone. Only, if I view the HTML in the Gutenberg editor, the paragraph tags are all still there. :/ They don't show up in the revisions, though. |
I've been running into this for weeks but assumed I was an early adopter. 😄 Right now I avoid it by only using one editor experience for each P2 post (not switching between contexts or editors). |
note to self: potentially related D18636-code |
Verified the issue. Also verified that removing all Gutenberg comments in the classic editor will re-instate the p tag behavior as expected. |
Folks can't reproduce on master anymore so, something must have fixed the issue in the last few days. Closing this out for now. If folks see other compatibility issues please file a new issue instead of resurrecting this one. |
Just wanted to confirm that I wasn't able to reproduce this both for Simple and Jetpack sites on current master. We suspect that something in 4.1 update resolved it, but we are still not certain what. |
Not sure if this is relevant yet, but there was an |
Just wanted to note that I am seeing this issue on the WordPress.com support theme, see: https://en.support.wordpress.com/wordpress-editor/blocks/common-blocks/ |
@tyxla @jjchrisdiehl if folks are seeing new reports, can we please open new issues with specific steps? autop misbehavior will trigger in various ways, and this will help us fix specific cases. |
Steps to reproduce
What I expected
Calypso editor is stripping out the
<p>
tags, which in turn is breaking the Gutenberg blocks. The Gutenberg error of blocks being modified is correct, since Calypso is modifying the blocks by runningremovep
filter over post content.Solution
A potential solution would be for Calypso to detect if Gutenberg blocks exists and to not apply the autop filter if they do.
The text was updated successfully, but these errors were encountered: