diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/blocks/file/block.json --- a/wp/wp-includes/blocks/file/block.json Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/blocks/file/block.json Wed Sep 21 18:19:35 2022 +0200 @@ -1,6 +1,11 @@ { + "apiVersion": 2, "name": "core/file", + "title": "File", "category": "media", + "description": "Add a link to a downloadable file.", + "keywords": [ "document", "pdf", "download" ], + "textdomain": "default", "attributes": { "id": { "type": "number" @@ -33,10 +38,20 @@ "type": "string", "source": "html", "selector": "a[download]" + }, + "displayPreview": { + "type": "boolean" + }, + "previewHeight": { + "type": "number", + "default": 600 } }, "supports": { "anchor": true, "align": true - } + }, + "viewScript": "file:./view.min.js", + "editorStyle": "wp-block-file-editor", + "style": "wp-block-file" }