We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey all,
This is new to me, so I hope I report this right.
paragraph
<p>
If you change file: https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/paragraph/save.js
And change line 19/26
From:
return ( <RichText.Content tagName="p" className={ className ? className : undefined } value={ content } dir={ direction } /> );
To:
return ( {content && <RichText.Content tagName="p" className={ className ? className : undefined } value={ content } dir={ direction } />} );
It would only save if it has content to save, right? So, if no content, no p element.
The text was updated successfully, but these errors were encountered:
Thank you for reporting; this has already been reported at #18297
Sorry, something went wrong.
No branches or pull requests
Hey all,
This is new to me, so I hope I report this right.
paragraph
renders an empty<p>
element if it has no content.If you change file: https://github.com/WordPress/gutenberg/blob/master/packages/block-library/src/paragraph/save.js
And change line 19/26
From:
To:
It would only save if it has content to save, right? So, if no content, no p element.
The text was updated successfully, but these errors were encountered: