package_v0.0.22
·
235 commits
to master
since this release
- Moved Gutenberg package to
packages/gutenbergdir and changeddistfolder name tobuild. Also a new style file is required (theme.css):
import '@frontkom/gutenberg/build/css/core-blocks/style.css';
import '@frontkom/gutenberg/build/css/core-blocks/edit-blocks.css';
import '@frontkom/gutenberg/build/css/core-blocks/theme.css';
import '@frontkom/gutenberg/build/css/style.css';-
On
initializeEditor( 'editor', post, settings ), now it is expected:- The
idprop inpostobject (ex:id: 123) - The
autosaveIntervalprop insettingsobject (ex:autosaveInterval: 10)
- The
-
The new Gutenberg Autosave feature requires a new api-request request:
- PUT
/wp/v2/[postType]/[id]/autosaves, which returns post or page object (see to POST post/page response) - To disable Autosave, add
autosaveable: falsetotypeobject on GET types response
- PUT