Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion block-dynamic/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

// Required components
const { __ } = wp.i18n;
const { registerBlockType, RichText } = wp.blocks;
const { registerBlockType } = wp.blocks;
const { RichText } = wp.editor;

/**
* Registers and creates block
Expand Down
2 changes: 1 addition & 1 deletion gutenberg-blocks-sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function register_dynamic_block_action ( ) {
wp_enqueue_script(
$script_slug,
plugin_dir_url( __FILE__ ) . $block_name . '/block.build.js',
['wp-blocks', 'wp-i18n', 'wp-element'], // Required scripts for the block
['wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor'], // Required scripts for the block
GBC_VERSION
);

Expand Down