wp/wp-includes/blocks/paragraph/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/paragraph",
     3 	"name": "core/paragraph",
       
     4 	"title": "Paragraph",
     3 	"category": "text",
     5 	"category": "text",
       
     6 	"description": "Start with the building block of all narrative.",
       
     7 	"keywords": [ "text" ],
       
     8 	"textdomain": "default",
     4 	"attributes": {
     9 	"attributes": {
     5 		"align": {
    10 		"align": {
     6 			"type": "string"
    11 			"type": "string"
     7 		},
    12 		},
     8 		"content": {
    13 		"content": {
     9 			"type": "string",
    14 			"type": "string",
    10 			"source": "html",
    15 			"source": "html",
    11 			"selector": "p",
    16 			"selector": "p",
    12 			"default": ""
    17 			"default": "",
       
    18 			"__experimentalRole": "content"
    13 		},
    19 		},
    14 		"dropCap": {
    20 		"dropCap": {
    15 			"type": "boolean",
    21 			"type": "boolean",
    16 			"default": false
    22 			"default": false
    17 		},
    23 		},
    18 		"placeholder": {
    24 		"placeholder": {
    19 			"type": "string"
    25 			"type": "string"
    20 		},
    26 		},
    21 		"direction": {
    27 		"direction": {
    22 			"type": "string",
    28 			"type": "string",
    23 			"enum": [
    29 			"enum": [ "ltr", "rtl" ]
    24 				"ltr",
       
    25 				"rtl"
       
    26 			]
       
    27 		}
    30 		}
    28 	},
    31 	},
    29 	"supports": {
    32 	"supports": {
    30 		"anchor": true,
    33 		"anchor": true,
    31 		"className": false,
    34 		"className": false,
    32 		"lightBlockWrapper": true,
    35 		"color": {
    33 		"__experimentalColor": {
    36 			"link": true
    34 			"linkColor": true
       
    35 		},
    37 		},
    36 		"__experimentalFontSize": true,
    38 		"typography": {
    37 		"__experimentalLineHeight": true,
    39 			"fontSize": true,
    38 		"__experimentalFeatures": {
    40 			"lineHeight": true
    39 			"typography": {
       
    40 				"dropCap": true
       
    41 			}
       
    42 		},
    41 		},
    43 		"__experimentalSelector": "p",
    42 		"__experimentalSelector": "p",
    44 		"__unstablePasteTextInline": true
    43 		"__unstablePasteTextInline": true
    45 	}
    44 	},
       
    45 	"editorStyle": "wp-block-paragraph-editor",
       
    46 	"style": "wp-block-paragraph"
    46 }
    47 }