Skip to content

Commit

Permalink
Add 'supports.lock' to block.json schema (#40161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Apr 7, 2022
1 parent 0e5b82b commit d311688
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schemas/json/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@
"description": "A block may want to disable the ability of being converted into a reusable block. By default all blocks can be converted to a reusable block. If supports reusable is set to false, the option to convert the block into a reusable block will not appear.",
"default": true
},
"lock": {
"type": "boolean",
"description": "A block may want to disable the ability to toggle the lock state. It can be locked/unlocked by a user from the block 'Options' dropdown by default. To disable this behavior, set lock to false.",
"default": true
},
"spacing": {
"type": "object",
"description": "This value signals that a block supports some of the CSS style properties related to spacing. When it does, the block editor will show UI controls for the user to set their values, if the theme declares support.\n\nWhen the block declares support for a specific spacing property, the attributes definition is extended to include the style attribute.",
Expand Down

0 comments on commit d311688

Please sign in to comment.