[ 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          },
  21          "fileId": {
  22              "type": "string",
  23              "source": "attribute",
  24              "selector": "a:not([download])",
  25              "attribute": "id"
  26          },
  27          "fileName": {
  28              "type": "rich-text",
  29              "source": "rich-text",
  30              "selector": "a:not([download])"
  31          },
  32          "textLinkHref": {
  33              "type": "string",
  34              "source": "attribute",
  35              "selector": "a:not([download])",
  36              "attribute": "href"
  37          },
  38          "textLinkTarget": {
  39              "type": "string",
  40              "source": "attribute",
  41              "selector": "a:not([download])",
  42              "attribute": "target"
  43          },
  44          "showDownloadButton": {
  45              "type": "boolean",
  46              "default": true
  47          },
  48          "downloadButtonText": {
  49              "type": "rich-text",
  50              "source": "rich-text",
  51              "selector": "a[download]"
  52          },
  53          "displayPreview": {
  54              "type": "boolean"
  55          },
  56          "previewHeight": {
  57              "type": "number",
  58              "default": 600
  59          }
  60      },
  61      "supports": {
  62          "anchor": true,
  63          "align": true,
  64          "spacing": {
  65              "margin": true,
  66              "padding": true
  67          },
  68          "color": {
  69              "gradients": true,
  70              "link": true,
  71              "text": false,
  72              "__experimentalDefaultControls": {
  73                  "background": true,
  74                  "link": true
  75              }
  76          },
  77          "__experimentalBorder": {
  78              "radius": true,
  79              "color": true,
  80              "width": true,
  81              "style": true,
  82              "__experimentalDefaultControls": {
  83                  "radius": true,
  84                  "color": true,
  85                  "width": true,
  86                  "style": true
  87              }
  88          },
  89          "interactivity": true
  90      },
  91      "editorStyle": "wp-block-file-editor",
  92      "style": "wp-block-file"
  93  }


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