[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/file",
   5      "title": "File",
   6      "category": "media",
   7      "description": "Add a link to a downloadable file.",
   8      "keywords": [ "document", "pdf", "download" ],
   9      "textdomain": "default",
  10      "attributes": {
  11          "id": {
  12              "type": "number"
  13          },
  14          "blob": {
  15              "type": "string",
  16              "role": "local"
  17          },
  18          "href": {
  19              "type": "string",
  20              "role": "content"
  21          },
  22          "fileId": {
  23              "type": "string",
  24              "source": "attribute",
  25              "selector": "a:not([download])",
  26              "attribute": "id"
  27          },
  28          "fileName": {
  29              "type": "rich-text",
  30              "source": "rich-text",
  31              "selector": "a:not([download])",
  32              "role": "content"
  33          },
  34          "textLinkHref": {
  35              "type": "string",
  36              "source": "attribute",
  37              "selector": "a:not([download])",
  38              "attribute": "href",
  39              "role": "content"
  40          },
  41          "textLinkTarget": {
  42              "type": "string",
  43              "source": "attribute",
  44              "selector": "a:not([download])",
  45              "attribute": "target"
  46          },
  47          "showDownloadButton": {
  48              "type": "boolean",
  49              "default": true
  50          },
  51          "downloadButtonText": {
  52              "type": "rich-text",
  53              "source": "rich-text",
  54              "selector": "a[download]",
  55              "role": "content"
  56          },
  57          "displayPreview": {
  58              "type": "boolean"
  59          },
  60          "previewHeight": {
  61              "type": "number",
  62              "default": 600
  63          }
  64      },
  65      "supports": {
  66          "anchor": true,
  67          "align": true,
  68          "spacing": {
  69              "margin": true,
  70              "padding": true
  71          },
  72          "color": {
  73              "gradients": true,
  74              "link": true,
  75              "text": false,
  76              "__experimentalDefaultControls": {
  77                  "background": true,
  78                  "link": true
  79              }
  80          },
  81          "__experimentalBorder": {
  82              "radius": true,
  83              "color": true,
  84              "width": true,
  85              "style": true,
  86              "__experimentalDefaultControls": {
  87                  "radius": true,
  88                  "color": true,
  89                  "width": true,
  90                  "style": true
  91              }
  92          },
  93          "interactivity": true
  94      },
  95      "editorStyle": "wp-block-file-editor",
  96      "style": "wp-block-file"
  97  }


Generated : Sat Feb 22 08:20:01 2025 Cross-referenced by PHPXref