wp/wp-includes/blocks/file/block.json
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 {
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"apiVersion": 2,
     3 	"apiVersion": 2,
     3 	"name": "core/file",
     4 	"name": "core/file",
     4 	"title": "File",
     5 	"title": "File",
     5 	"category": "media",
     6 	"category": "media",
     6 	"description": "Add a link to a downloadable file.",
     7 	"description": "Add a link to a downloadable file.",
    10 		"id": {
    11 		"id": {
    11 			"type": "number"
    12 			"type": "number"
    12 		},
    13 		},
    13 		"href": {
    14 		"href": {
    14 			"type": "string"
    15 			"type": "string"
       
    16 		},
       
    17 		"fileId": {
       
    18 			"type": "string",
       
    19 			"source": "attribute",
       
    20 			"selector": "a:not([download])",
       
    21 			"attribute": "id"
    15 		},
    22 		},
    16 		"fileName": {
    23 		"fileName": {
    17 			"type": "string",
    24 			"type": "string",
    18 			"source": "html",
    25 			"source": "html",
    19 			"selector": "a:not([download])"
    26 			"selector": "a:not([download])"