File


目录

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
id number — —
blob string — Role: local
href string — Role: content
fileId string — Source: attribute. Selector: a:not([download]). HTML attr: id
fileName rich-text — Source: rich-text. Selector: a:not([download]). Role: content
textLinkHref string — Source: attribute. Selector: a:not([download]). HTML attr: href. Role: content
textLinkTarget string — Source: attribute. Selector: a:not([download]). HTML attr: target
showDownloadButton boolean true —
downloadButtonText rich-text — Source: rich-text. Selector: a[download]. Role: content
displayPreview boolean — —
previewHeight number 600 —

Supports

Defined via the supports property in block.json.

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:file {"showDownloadButton":true,"previewHeight":600} -->
<!-- Content... -->
<!-- /wp:file -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:30:37 UTC
由 壳壳虫 更新于 2026-10-31 18:30:39 UTC