Skip to content

Commit

Permalink
Add default styles to deselect added styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrtashjian committed Dec 1, 2018
1 parent 2574f7f commit 4799ddb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/blocks.build.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@ registerBlockStyle('core/paragraph', {
isDefault: false,
});

// Default paragraph style for resetting block.
registerBlockStyle('core/paragraph', {
name: 'default',
label: __('Default'),
isDefault: true,
});

registerBlockStyle('core/image', {
name: 'spoiler-alert',
label: __('Spoiler Alert'),
isDefault: false,
});

// Default image style for resetting block.
registerBlockStyle('core/image', {
name: 'default',
label: __('Default'),
isDefault: true,
});

0 comments on commit 4799ddb

Please sign in to comment.