Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove block alignment from paragraph block (fix #6476) #6511

Merged
merged 4 commits into from
May 3, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Do deprecation better
  • Loading branch information
tofumatt committed May 3, 2018
commit f7e723f63fdf777caf90f37991acb254f768f0a2
14 changes: 6 additions & 8 deletions core-blocks/paragraph/index.js
Original file line number Diff line number Diff line change
@@ -279,14 +279,7 @@ const supports = {
className: false,
};

const deprecatedSchema = {
width: {
type: 'string',
},
};

const schema = {
...deprecatedSchema,
content: {
type: 'array',
source: 'children',
@@ -357,7 +350,12 @@ export const settings = {
deprecated: [
{
supports,
attributes: schema,
attributes: {
...schema,
width: {
type: 'string',
},
},
save( { attributes } ) {
const {
width,