wp/wp-includes/blocks/image/block.json
changeset 16 a86126ab1dd4
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
       
     1 {
       
     2 	"name": "core/image",
       
     3 	"category": "media",
       
     4 	"attributes": {
       
     5 		"align": {
       
     6 			"type": "string"
       
     7 		},
       
     8 		"url": {
       
     9 			"type": "string",
       
    10 			"source": "attribute",
       
    11 			"selector": "img",
       
    12 			"attribute": "src"
       
    13 		},
       
    14 		"alt": {
       
    15 			"type": "string",
       
    16 			"source": "attribute",
       
    17 			"selector": "img",
       
    18 			"attribute": "alt",
       
    19 			"default": ""
       
    20 		},
       
    21 		"caption": {
       
    22 			"type": "string",
       
    23 			"source": "html",
       
    24 			"selector": "figcaption"
       
    25 		},
       
    26 		"title": {
       
    27 			"type": "string",
       
    28 			"source": "attribute",
       
    29 			"selector": "img",
       
    30 			"attribute": "title"
       
    31 		},
       
    32 		"href": {
       
    33 			"type": "string",
       
    34 			"source": "attribute",
       
    35 			"selector": "figure > a",
       
    36 			"attribute": "href"
       
    37 		},
       
    38 		"rel": {
       
    39 			"type": "string",
       
    40 			"source": "attribute",
       
    41 			"selector": "figure > a",
       
    42 			"attribute": "rel"
       
    43 		},
       
    44 		"linkClass": {
       
    45 			"type": "string",
       
    46 			"source": "attribute",
       
    47 			"selector": "figure > a",
       
    48 			"attribute": "class"
       
    49 		},
       
    50 		"id": {
       
    51 			"type": "number"
       
    52 		},
       
    53 		"width": {
       
    54 			"type": "number"
       
    55 		},
       
    56 		"height": {
       
    57 			"type": "number"
       
    58 		},
       
    59 		"sizeSlug": {
       
    60 			"type": "string"
       
    61 		},
       
    62 		"linkDestination": {
       
    63 			"type": "string",
       
    64 			"default": "none"
       
    65 		},
       
    66 		"linkTarget": {
       
    67 			"type": "string",
       
    68 			"source": "attribute",
       
    69 			"selector": "figure > a",
       
    70 			"attribute": "target"
       
    71 		}
       
    72 	},
       
    73 	"supports": {
       
    74 		"anchor": true,
       
    75 		"lightBlockWrapper": true
       
    76 	}
       
    77 }