wp/wp-includes/blocks/file/block.json
changeset 16 a86126ab1dd4
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
       
     1 {
       
     2 	"name": "core/file",
       
     3 	"category": "media",
       
     4 	"attributes": {
       
     5 		"id": {
       
     6 			"type": "number"
       
     7 		},
       
     8 		"href": {
       
     9 			"type": "string"
       
    10 		},
       
    11 		"fileName": {
       
    12 			"type": "string",
       
    13 			"source": "html",
       
    14 			"selector": "a:not([download])"
       
    15 		},
       
    16 		"textLinkHref": {
       
    17 			"type": "string",
       
    18 			"source": "attribute",
       
    19 			"selector": "a:not([download])",
       
    20 			"attribute": "href"
       
    21 		},
       
    22 		"textLinkTarget": {
       
    23 			"type": "string",
       
    24 			"source": "attribute",
       
    25 			"selector": "a:not([download])",
       
    26 			"attribute": "target"
       
    27 		},
       
    28 		"showDownloadButton": {
       
    29 			"type": "boolean",
       
    30 			"default": true
       
    31 		},
       
    32 		"downloadButtonText": {
       
    33 			"type": "string",
       
    34 			"source": "html",
       
    35 			"selector": "a[download]"
       
    36 		}
       
    37 	},
       
    38 	"supports": {
       
    39 		"anchor": true,
       
    40 		"align": true
       
    41 	}
       
    42 }