Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 464 Bytes

File metadata and controls

18 lines (14 loc) · 464 Bytes

Isolated Block Editor - bundling with WordPress

This helps with setting up WordPress to load Gutenberg on pages outside of the post editor.

It will:

  • Load Gutenberg JS and CSS files
  • Setup the Gutenberg settings
  • Allow third-party blocks to run
  • Setup the media library

Some of this setup is copied from WordPress, and may need to be updated.

add_action( 'init', function() {
	$gutenberg = new IsoEditor_Gutenberg();
	$gutenberg->load();
} );