wp/wp-includes/blocks/file/block.json
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
     1 {
     1 {
       
     2 	"apiVersion": 2,
     2 	"name": "core/file",
     3 	"name": "core/file",
       
     4 	"title": "File",
     3 	"category": "media",
     5 	"category": "media",
       
     6 	"description": "Add a link to a downloadable file.",
       
     7 	"keywords": [ "document", "pdf", "download" ],
       
     8 	"textdomain": "default",
     4 	"attributes": {
     9 	"attributes": {
     5 		"id": {
    10 		"id": {
     6 			"type": "number"
    11 			"type": "number"
     7 		},
    12 		},
     8 		"href": {
    13 		"href": {
    31 		},
    36 		},
    32 		"downloadButtonText": {
    37 		"downloadButtonText": {
    33 			"type": "string",
    38 			"type": "string",
    34 			"source": "html",
    39 			"source": "html",
    35 			"selector": "a[download]"
    40 			"selector": "a[download]"
       
    41 		},
       
    42 		"displayPreview": {
       
    43 			"type": "boolean"
       
    44 		},
       
    45 		"previewHeight": {
       
    46 			"type": "number",
       
    47 			"default": 600
    36 		}
    48 		}
    37 	},
    49 	},
    38 	"supports": {
    50 	"supports": {
    39 		"anchor": true,
    51 		"anchor": true,
    40 		"align": true
    52 		"align": true
    41 	}
    53 	},
       
    54 	"viewScript": "file:./view.min.js",
       
    55 	"editorStyle": "wp-block-file-editor",
       
    56 	"style": "wp-block-file"
    42 }
    57 }