wp-papi / papi

:rocket: WordPress Page Type API with custom fields
https://wp-papi.github.io
MIT License
263 stars 32 forks source link

Gutenberg support #255

Open frozzare opened 6 years ago

frozzare commented 6 years ago

I open this issue to start logging issues that Papi has with Gutenberg. I have fixed some issues in feature/gutenberg to make it work when saving.

I will happy to accept contributions to make Papi work with Gutenberg.

I personally haven't started using Gutenberg and therefor don't see all issues that this plugin have with Gutenberg. I have no intentional to make this plugin work with Gutenberg blocks (right now, maybe later) and I think it should start out as a separated plugin and then be merged to core.

This plugin should work without Gutenberg for those that don't want Gutenberg for various reasons

frozzare commented 6 years ago

https://core.trac.wordpress.org/ticket/45283

frozzare commented 5 years ago
frozzare commented 5 years ago

Hook into WP's new autosaving JavaScript if Gutenberg is active: https://github.com/WordPress/wordpress-develop/blob/master/src/js/_enqueues/wp/autosave.js#L375