From 75c2526d2d1e2316b43423b79ebd90b3dfe07846 Mon Sep 17 00:00:00 2001 From: Shreyash Date: Sun, 4 Feb 2024 11:04:38 +0530 Subject: [PATCH 1/3] Fix innerBlocks schema description in block.json (#58381) --- schemas/json/block.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/json/block.json b/schemas/json/block.json index 5d0c7b5281b33..5e63377aca13a 100644 --- a/schemas/json/block.json +++ b/schemas/json/block.json @@ -739,7 +739,7 @@ }, "innerBlocks": { "type": "array", - "description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this: \n\n [ [ 'core/heading', { content: 'This is an Example' }, [] ] ]\n\n Where each block itself is an array that contains the block name, the block attributes, and the blocks inner blocks." + "description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\\n\\n[{ name: 'core/heading', innerBlocks: [{ name: 'core/subheading', attributes: { content: 'This is an example.' }}, { }] }]\\n\\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks." } } }, From 2c9ce45a0ef55b35f6c4a9f0639117d539c60a35 Mon Sep 17 00:00:00 2001 From: Shreyash Date: Mon, 5 Feb 2024 15:46:29 +0530 Subject: [PATCH 2/3] docs: Update innerBlocks description in block.json Co-authored-by: Aki Hamano <54422211+t-hamano@users.noreply.github.com> --- schemas/json/block.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/json/block.json b/schemas/json/block.json index 5e63377aca13a..a719455515601 100644 --- a/schemas/json/block.json +++ b/schemas/json/block.json @@ -739,7 +739,7 @@ }, "innerBlocks": { "type": "array", - "description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\\n\\n[{ name: 'core/heading', innerBlocks: [{ name: 'core/subheading', attributes: { content: 'This is an example.' }}, { }] }]\\n\\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks." + "description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\\n\\n[ { \"name\": \"core/heading\", \"innerBlocks\": [ { \"name\": \"core/heading\", \"attributes\": { \"content\": \"This is an Example\" } } ] } ]\\n\\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks." } } }, From c3508ab16fa1c00fcaa1e516d9bfd9205709b44a Mon Sep 17 00:00:00 2001 From: Shreyash Date: Mon, 5 Feb 2024 18:15:43 +0530 Subject: [PATCH 3/3] docs: Update innerBlocks description in block.json --- schemas/json/block.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/json/block.json b/schemas/json/block.json index a719455515601..6f05814002655 100644 --- a/schemas/json/block.json +++ b/schemas/json/block.json @@ -739,7 +739,7 @@ }, "innerBlocks": { "type": "array", - "description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\\n\\n[ { \"name\": \"core/heading\", \"innerBlocks\": [ { \"name\": \"core/heading\", \"attributes\": { \"content\": \"This is an Example\" } } ] } ]\\n\\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks." + "description": "Set the inner blocks that should be used within the block example. The blocks should be defined as a nested array like this:\n\n[ { \"name\": \"core/heading\", \"attributes\": { \"content\": \"This is an Example\" } } ]\n\nWhere each block itself is an object that contains the block name, the block attributes, and the blocks inner blocks." } } },