diff --git a/packages/block-library/src/button/block.json b/packages/block-library/src/button/block.json index 32fda95348d8a1..9c7f24ea24692a 100644 --- a/packages/block-library/src/button/block.json +++ b/packages/block-library/src/button/block.json @@ -42,6 +42,9 @@ "source": "attribute", "selector": "a", "attribute": "rel" + }, + "placeholder": { + "type": "string" } } } diff --git a/packages/block-library/src/button/edit.js b/packages/block-library/src/button/edit.js index 967dc29c9e44cb..b258486b989203 100644 --- a/packages/block-library/src/button/edit.js +++ b/packages/block-library/src/button/edit.js @@ -104,6 +104,7 @@ class ButtonEdit extends Component { title, linkTarget, rel, + placeholder, } = attributes; const linkId = `wp-block-button__inline-link-${ instanceId }`; @@ -111,7 +112,7 @@ class ButtonEdit extends Component { return (
setAttributes( { text: value } ) } withoutInteractiveFormatting