[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/image/ -> block.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/image",
   5      "title": "Image",
   6      "category": "media",
   7      "usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
   8      "description": "Insert an image to make a visual statement.",
   9      "keywords": [ "img", "photo", "picture" ],
  10      "textdomain": "default",
  11      "attributes": {
  12          "blob": {
  13              "type": "string",
  14              "role": "local"
  15          },
  16          "url": {
  17              "type": "string",
  18              "source": "attribute",
  19              "selector": "img",
  20              "attribute": "src",
  21              "role": "content"
  22          },
  23          "alt": {
  24              "type": "string",
  25              "source": "attribute",
  26              "selector": "img",
  27              "attribute": "alt",
  28              "default": "",
  29              "role": "content"
  30          },
  31          "caption": {
  32              "type": "rich-text",
  33              "source": "rich-text",
  34              "selector": "figcaption",
  35              "role": "content"
  36          },
  37          "lightbox": {
  38              "type": "object",
  39              "enabled": {
  40                  "type": "boolean"
  41              }
  42          },
  43          "title": {
  44              "type": "string",
  45              "source": "attribute",
  46              "selector": "img",
  47              "attribute": "title",
  48              "role": "content"
  49          },
  50          "href": {
  51              "type": "string",
  52              "source": "attribute",
  53              "selector": "figure > a",
  54              "attribute": "href",
  55              "role": "content"
  56          },
  57          "rel": {
  58              "type": "string",
  59              "source": "attribute",
  60              "selector": "figure > a",
  61              "attribute": "rel"
  62          },
  63          "linkClass": {
  64              "type": "string",
  65              "source": "attribute",
  66              "selector": "figure > a",
  67              "attribute": "class"
  68          },
  69          "id": {
  70              "type": "number",
  71              "role": "content"
  72          },
  73          "width": {
  74              "type": "string"
  75          },
  76          "height": {
  77              "type": "string"
  78          },
  79          "aspectRatio": {
  80              "type": "string"
  81          },
  82          "scale": {
  83              "type": "string"
  84          },
  85          "sizeSlug": {
  86              "type": "string"
  87          },
  88          "linkDestination": {
  89              "type": "string"
  90          },
  91          "linkTarget": {
  92              "type": "string",
  93              "source": "attribute",
  94              "selector": "figure > a",
  95              "attribute": "target"
  96          }
  97      },
  98      "supports": {
  99          "interactivity": true,
 100          "align": [ "left", "center", "right", "wide", "full" ],
 101          "anchor": true,
 102          "color": {
 103              "text": false,
 104              "background": false
 105          },
 106          "filter": {
 107              "duotone": true
 108          },
 109          "spacing": {
 110              "margin": true
 111          },
 112          "__experimentalBorder": {
 113              "color": true,
 114              "radius": true,
 115              "width": true,
 116              "__experimentalSkipSerialization": true,
 117              "__experimentalDefaultControls": {
 118                  "color": true,
 119                  "radius": true,
 120                  "width": true
 121              }
 122          },
 123          "shadow": {
 124              "__experimentalSkipSerialization": true
 125          }
 126      },
 127      "selectors": {
 128          "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
 129          "shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
 130          "filter": {
 131              "duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
 132          }
 133      },
 134      "styles": [
 135          {
 136              "name": "default",
 137              "label": "Default",
 138              "isDefault": true
 139          },
 140          { "name": "rounded", "label": "Rounded" }
 141      ],
 142      "editorStyle": "wp-block-image-editor",
 143      "style": "wp-block-image"
 144  }


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref