Skip to content

Commit

Permalink
Exclude HTML editing from Columns and Column blocks. (#11785)
Browse files Browse the repository at this point in the history
Editing these wrapper blocks in HTML directly is fragile and prone
to breaking the users' content.

HTML editing should be left to leaf-blocks.
  • Loading branch information
mtias authored and gziolo committed Nov 13, 2018
1 parent f712410 commit c206d07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/columns/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const settings = {
supports: {
inserter: false,
reusable: false,
html: false,
},

edit() {
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/columns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const settings = {

supports: {
align: [ 'wide', 'full' ],
html: false,
},

deprecated: [
Expand Down

0 comments on commit c206d07

Please sign in to comment.