ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

block.json (1772B)


      1 {
      2 	"apiVersion": 2,
      3 	"name": "core/image",
      4 	"title": "Image",
      5 	"category": "media",
      6 	"description": "Insert an image to make a visual statement.",
      7 	"keywords": [ "img", "photo", "picture" ],
      8 	"textdomain": "default",
      9 	"attributes": {
     10 		"align": {
     11 			"type": "string"
     12 		},
     13 		"url": {
     14 			"type": "string",
     15 			"source": "attribute",
     16 			"selector": "img",
     17 			"attribute": "src"
     18 		},
     19 		"alt": {
     20 			"type": "string",
     21 			"source": "attribute",
     22 			"selector": "img",
     23 			"attribute": "alt",
     24 			"default": ""
     25 		},
     26 		"caption": {
     27 			"type": "string",
     28 			"source": "html",
     29 			"selector": "figcaption"
     30 		},
     31 		"title": {
     32 			"type": "string",
     33 			"source": "attribute",
     34 			"selector": "img",
     35 			"attribute": "title"
     36 		},
     37 		"href": {
     38 			"type": "string",
     39 			"source": "attribute",
     40 			"selector": "figure > a",
     41 			"attribute": "href"
     42 		},
     43 		"rel": {
     44 			"type": "string",
     45 			"source": "attribute",
     46 			"selector": "figure > a",
     47 			"attribute": "rel"
     48 		},
     49 		"linkClass": {
     50 			"type": "string",
     51 			"source": "attribute",
     52 			"selector": "figure > a",
     53 			"attribute": "class"
     54 		},
     55 		"id": {
     56 			"type": "number"
     57 		},
     58 		"width": {
     59 			"type": "number"
     60 		},
     61 		"height": {
     62 			"type": "number"
     63 		},
     64 		"sizeSlug": {
     65 			"type": "string"
     66 		},
     67 		"linkDestination": {
     68 			"type": "string"
     69 		},
     70 		"linkTarget": {
     71 			"type": "string",
     72 			"source": "attribute",
     73 			"selector": "figure > a",
     74 			"attribute": "target"
     75 		}
     76 	},
     77 	"supports": {
     78 		"anchor": true,
     79 		"color": {
     80 			"__experimentalDuotone": "img",
     81 			"text": false,
     82 			"background": false
     83 		},
     84 		"__experimentalBorder": {
     85 			"radius": true
     86 		}
     87 	},
     88 	"styles": [
     89 		{
     90 			"name": "default",
     91 			"label": "Default",
     92 			"isDefault": true
     93 		},
     94 		{ "name": "rounded", "label": "Rounded" }
     95 	],
     96 	"editorStyle": "wp-block-image-editor",
     97 	"style": "wp-block-image"
     98 }