diff --git a/03-editable-esnext/block.json b/03-editable-esnext/block.json index 4a87a4f6..cc7a53cf 100644 --- a/03-editable-esnext/block.json +++ b/03-editable-esnext/block.json @@ -8,8 +8,8 @@ "category": "layout", "attributes": { "content": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": "p" } }, diff --git a/03-editable/block.json b/03-editable/block.json index 8cfdce92..4aa2c9ae 100644 --- a/03-editable/block.json +++ b/03-editable/block.json @@ -7,8 +7,8 @@ "category": "layout", "attributes": { "content": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": "p" } }, diff --git a/04-controls-esnext/block.json b/04-controls-esnext/block.json index 275a3024..f883abba 100644 --- a/04-controls-esnext/block.json +++ b/04-controls-esnext/block.json @@ -8,8 +8,8 @@ "category": "layout", "attributes": { "content": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": "p" }, "alignment": { diff --git a/04-controls/block.json b/04-controls/block.json index 48c1e1a0..f5169d41 100644 --- a/04-controls/block.json +++ b/04-controls/block.json @@ -7,8 +7,8 @@ "category": "layout", "attributes": { "content": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": "p" }, "alignment": { diff --git a/05-recipe-card-esnext/block.json b/05-recipe-card-esnext/block.json index a3cd95d5..43bb066b 100644 --- a/05-recipe-card-esnext/block.json +++ b/05-recipe-card-esnext/block.json @@ -7,8 +7,8 @@ "category": "layout", "attributes": { "title": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": "h2" }, "mediaID": { @@ -21,13 +21,13 @@ "attribute": "src" }, "ingredients": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": ".ingredients" }, "instructions": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": ".steps" } }, @@ -37,15 +37,15 @@ "mediaID": 1, "mediaURL": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/2ChocolateChipCookies.jpg/320px-2ChocolateChipCookies.jpg", "ingredients": [ - { "type": "li", "props": { "children": [ "flour" ] } }, - { "type": "li", "props": { "children": [ "sugar" ] } }, - { "type": "li", "props": { "children": [ "chocolate" ] } }, - { "type": "li", "props": { "children": [ "💖" ] } } + { "type": "li", "props": { "children": ["flour"] } }, + { "type": "li", "props": { "children": ["sugar"] } }, + { "type": "li", "props": { "children": ["chocolate"] } }, + { "type": "li", "props": { "children": ["💖"] } } ], "instructions": [ { "type": "p", - "props": { "children": [ "Mix, Bake, Enjoy!" ] } + "props": { "children": ["Mix, Bake, Enjoy!"] } } ] } diff --git a/05-recipe-card/block.json b/05-recipe-card/block.json index 05bbf5d4..e48a1155 100644 --- a/05-recipe-card/block.json +++ b/05-recipe-card/block.json @@ -7,8 +7,8 @@ "category": "layout", "attributes": { "title": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": "h2" }, "mediaID": { @@ -21,13 +21,13 @@ "attribute": "src" }, "ingredients": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": ".ingredients" }, "instructions": { - "type": "array", - "source": "children", + "type": "string", + "source": "html", "selector": ".steps" } }, @@ -35,8 +35,8 @@ "attributes": { "title": "Chocolate Chip Cookies", "mediaURL": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/2ChocolateChipCookies.jpg/320px-2ChocolateChipCookies.jpg", - "ingredients": [ "flour", "sugar", "chocolate", "💖" ], - "instructions": [ "Mix", "Bake", "Enjoy" ] + "ingredients": ["flour", "sugar", "chocolate", "💖"], + "instructions": ["Mix", "Bake", "Enjoy"] } }, "editorScript": "file:./block.js",