Skip to content

package_v0.0.22

Choose a tag to compare

@SofiaSousa SofiaSousa released this 04 Jun 16:31
· 235 commits to master since this release
  • Moved Gutenberg package to packages/gutenberg dir and changed dist folder name to build. 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 id prop in postobject (ex: id: 123)
    • The autosaveInterval prop in settings object (ex: autosaveInterval: 10)
  • 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: false to type object on GET types response