wp/wp-includes/blocks/file/block.json
changeset 16 a86126ab1dd4
child 18 be944660c56a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wp/wp-includes/blocks/file/block.json	Tue Dec 15 13:49:49 2020 +0100
@@ -0,0 +1,42 @@
+{
+	"name": "core/file",
+	"category": "media",
+	"attributes": {
+		"id": {
+			"type": "number"
+		},
+		"href": {
+			"type": "string"
+		},
+		"fileName": {
+			"type": "string",
+			"source": "html",
+			"selector": "a:not([download])"
+		},
+		"textLinkHref": {
+			"type": "string",
+			"source": "attribute",
+			"selector": "a:not([download])",
+			"attribute": "href"
+		},
+		"textLinkTarget": {
+			"type": "string",
+			"source": "attribute",
+			"selector": "a:not([download])",
+			"attribute": "target"
+		},
+		"showDownloadButton": {
+			"type": "boolean",
+			"default": true
+		},
+		"downloadButtonText": {
+			"type": "string",
+			"source": "html",
+			"selector": "a[download]"
+		}
+	},
+	"supports": {
+		"anchor": true,
+		"align": true
+	}
+}