CoreFiles by mySites.guru
block.json78 lines, 1,531 bytes, from wordpress-6.4.13.zip
Raw History Compare with 6.4.12
md5
7bc051ddabcdf025904c90b221533f87
sha1
c4b24ad50be57bc2c42e5a9a11db4267d694bac5
sha256
c5083015b5e01ac51cfc3dd1345aa9206d2fa15333c78707d7c4b82178815302
{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"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"
		},
		"href": {
			"type": "string"
		},
		"fileId": {
			"type": "string",
			"source": "attribute",
			"selector": "a:not([download])",
			"attribute": "id"
		},
		"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]"
		},
		"displayPreview": {
			"type": "boolean"
		},
		"previewHeight": {
			"type": "number",
			"default": 600
		}
	},
	"supports": {
		"anchor": true,
		"align": true,
		"spacing": {
			"margin": true,
			"padding": true
		},
		"color": {
			"gradients": true,
			"link": true,
			"text": false,
			"__experimentalDefaultControls": {
				"background": true,
				"link": true
			}
		},
		"interactivity": true
	},
	"viewScript": "file:./view.min.js",
	"editorStyle": "wp-block-file-editor",
	"style": "wp-block-file"
}

The same content is in 25 releases, WordPress 6.4-beta1 to 6.4.14. See them all, or every version of this file.