Skip to content

Commit

Permalink
File block: Allow content only editing (#65787)
Browse files Browse the repository at this point in the history
Co-authored-by: talldan <[email protected]>
Co-authored-by: andrewserong <[email protected]>
  • Loading branch information
3 people authored Oct 3, 2024
1 parent 4186b74 commit 45ecb4e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/block-library/src/file/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"role": "local"
},
"href": {
"type": "string"
"type": "string",
"role": "content"
},
"fileId": {
"type": "string",
Expand All @@ -27,13 +28,15 @@
"fileName": {
"type": "rich-text",
"source": "rich-text",
"selector": "a:not([download])"
"selector": "a:not([download])",
"role": "content"
},
"textLinkHref": {
"type": "string",
"source": "attribute",
"selector": "a:not([download])",
"attribute": "href"
"attribute": "href",
"role": "content"
},
"textLinkTarget": {
"type": "string",
Expand All @@ -48,7 +51,8 @@
"downloadButtonText": {
"type": "rich-text",
"source": "rich-text",
"selector": "a[download]"
"selector": "a[download]",
"role": "content"
},
"displayPreview": {
"type": "boolean"
Expand Down

0 comments on commit 45ecb4e

Please sign in to comment.