pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
299 stars 62 forks source link

content attribute is not returned for the core/paragraph block #206

Closed sathyapulse closed 1 month ago

sathyapulse commented 3 months ago

The content attribute field is not being returned for the core/paragraph block.

The Gutenberg plugin 17.3 merged the PR #43204, which changed the type and source attribute values from string => rich-text and html => rich-text, respectively, for the core paragraph block. As a result, the wp-graphql-gutenberg plugin fails to identify/parse the content attribute from the paragraph block.

The content attribute type doesn't have a matching case for rich-text here, and it was identified as string earlier. Also, the content attribute source doesn't have a matching case for rich-text here, and it was identified as html earlier. The wp-graphql-gutenberg plugin should patch those to fix the issue.

As I mentioned, the change was made in the Gutenberg 17.3 release, which was shipped with the WordPress 6.5 release.

kuuak commented 1 month ago

I encountered the same issue. A PR #203 has however been proposed

sathyapulse commented 1 month ago

The PR #203 has been merged. I'm closing the issue. Thanks.