[ 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          "url": {
  13              "type": "string",
  14              "source": "attribute",
  15              "selector": "img",
  16              "attribute": "src",
  17              "__experimentalRole": "content"
  18          },
  19          "alt": {
  20              "type": "string",
  21              "source": "attribute",
  22              "selector": "img",
  23              "attribute": "alt",
  24              "default": "",
  25              "__experimentalRole": "content"
  26          },
  27          "caption": {
  28              "type": "rich-text",
  29              "source": "rich-text",
  30              "selector": "figcaption",
  31              "__experimentalRole": "content"
  32          },
  33          "lightbox": {
  34              "type": "object",
  35              "enabled": {
  36                  "type": "boolean"
  37              }
  38          },
  39          "title": {
  40              "type": "string",
  41              "source": "attribute",
  42              "selector": "img",
  43              "attribute": "title",
  44              "__experimentalRole": "content"
  45          },
  46          "href": {
  47              "type": "string",
  48              "source": "attribute",
  49              "selector": "figure > a",
  50              "attribute": "href",
  51              "__experimentalRole": "content"
  52          },
  53          "rel": {
  54              "type": "string",
  55              "source": "attribute",
  56              "selector": "figure > a",
  57              "attribute": "rel"
  58          },
  59          "linkClass": {
  60              "type": "string",
  61              "source": "attribute",
  62              "selector": "figure > a",
  63              "attribute": "class"
  64          },
  65          "id": {
  66              "type": "number",
  67              "__experimentalRole": "content"
  68          },
  69          "width": {
  70              "type": "string"
  71          },
  72          "height": {
  73              "type": "string"
  74          },
  75          "aspectRatio": {
  76              "type": "string"
  77          },
  78          "scale": {
  79              "type": "string"
  80          },
  81          "sizeSlug": {
  82              "type": "string"
  83          },
  84          "linkDestination": {
  85              "type": "string"
  86          },
  87          "linkTarget": {
  88              "type": "string",
  89              "source": "attribute",
  90              "selector": "figure > a",
  91              "attribute": "target"
  92          }
  93      },
  94      "supports": {
  95          "interactivity": true,
  96          "align": [ "left", "center", "right", "wide", "full" ],
  97          "anchor": true,
  98          "color": {
  99              "text": false,
 100              "background": false
 101          },
 102          "filter": {
 103              "duotone": true
 104          },
 105          "__experimentalBorder": {
 106              "color": true,
 107              "radius": true,
 108              "width": true,
 109              "__experimentalSkipSerialization": true,
 110              "__experimentalDefaultControls": {
 111                  "color": true,
 112                  "radius": true,
 113                  "width": true
 114              }
 115          },
 116          "shadow": {
 117              "__experimentalSkipSerialization": true
 118          }
 119      },
 120      "selectors": {
 121          "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
 122          "shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
 123          "filter": {
 124              "duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
 125          }
 126      },
 127      "styles": [
 128          {
 129              "name": "default",
 130              "label": "Default",
 131              "isDefault": true
 132          },
 133          { "name": "rounded", "label": "Rounded" }
 134      ],
 135      "editorStyle": "wp-block-image-editor",
 136      "style": "wp-block-image"
 137  }


Generated : Thu May 2 08:20:01 2024 Cross-referenced by PHPXref