From 7e8c348b35e44f3cc07bd98c8b01d41d3da49dc3 Mon Sep 17 00:00:00 2001 From: AnneSmiles Date: Wed, 19 Dec 2018 13:17:36 +0100 Subject: [PATCH] Add placeholder as attribute to list block (allow template to change it) --- packages/block-library/src/list/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/list/index.js b/packages/block-library/src/list/index.js index e7a6174ef25084..90b0fb13fb0cb6 100644 --- a/packages/block-library/src/list/index.js +++ b/packages/block-library/src/list/index.js @@ -49,6 +49,9 @@ const schema = { multiline: 'li', default: '', }, + placeholder: { + type: 'string', + }, }; export const name = 'core/list'; @@ -220,7 +223,7 @@ export const settings = { onReplace, className, } ) { - const { ordered, values } = attributes; + const { ordered, values, placeholder } = attributes; return (