wp/wp-includes/blocks/paragraph/block.json
changeset 21 48c4eec2b7e6
parent 19 3d72ae0968f4
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
     1 {
     1 {
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     3 	"apiVersion": 2,
     3 	"apiVersion": 3,
     4 	"name": "core/paragraph",
     4 	"name": "core/paragraph",
     5 	"title": "Paragraph",
     5 	"title": "Paragraph",
     6 	"category": "text",
     6 	"category": "text",
     7 	"description": "Start with the basic building block of all narrative.",
     7 	"description": "Start with the basic building block of all narrative.",
     8 	"keywords": [ "text" ],
     8 	"keywords": [ "text" ],
    10 	"attributes": {
    10 	"attributes": {
    11 		"align": {
    11 		"align": {
    12 			"type": "string"
    12 			"type": "string"
    13 		},
    13 		},
    14 		"content": {
    14 		"content": {
    15 			"type": "string",
    15 			"type": "rich-text",
    16 			"source": "html",
    16 			"source": "rich-text",
    17 			"selector": "p",
    17 			"selector": "p",
    18 			"default": "",
       
    19 			"__experimentalRole": "content"
    18 			"__experimentalRole": "content"
    20 		},
    19 		},
    21 		"dropCap": {
    20 		"dropCap": {
    22 			"type": "boolean",
    21 			"type": "boolean",
    23 			"default": false
    22 			"default": false
    29 			"type": "string",
    28 			"type": "string",
    30 			"enum": [ "ltr", "rtl" ]
    29 			"enum": [ "ltr", "rtl" ]
    31 		}
    30 		}
    32 	},
    31 	},
    33 	"supports": {
    32 	"supports": {
       
    33 		"splitting": true,
    34 		"anchor": true,
    34 		"anchor": true,
    35 		"className": false,
    35 		"className": false,
    36 		"color": {
    36 		"color": {
       
    37 			"gradients": true,
    37 			"link": true,
    38 			"link": true,
    38 			"__experimentalDefaultControls": {
    39 			"__experimentalDefaultControls": {
    39 				"background": true,
    40 				"background": true,
    40 				"text": true
    41 				"text": true
    41 			}
    42 			}
    42 		},
    43 		},
       
    44 		"spacing": {
       
    45 			"margin": true,
       
    46 			"padding": true,
       
    47 			"__experimentalDefaultControls": {
       
    48 				"margin": false,
       
    49 				"padding": false
       
    50 			}
       
    51 		},
    43 		"typography": {
    52 		"typography": {
    44 			"fontSize": true,
    53 			"fontSize": true,
    45 			"lineHeight": true,
    54 			"lineHeight": true,
       
    55 			"__experimentalFontFamily": true,
       
    56 			"__experimentalTextDecoration": true,
    46 			"__experimentalFontStyle": true,
    57 			"__experimentalFontStyle": true,
    47 			"__experimentalFontWeight": true,
    58 			"__experimentalFontWeight": true,
    48 			"__experimentalLetterSpacing": true,
    59 			"__experimentalLetterSpacing": true,
    49 			"__experimentalTextTransform": true,
    60 			"__experimentalTextTransform": true,
       
    61 			"__experimentalWritingMode": true,
    50 			"__experimentalDefaultControls": {
    62 			"__experimentalDefaultControls": {
    51 				"fontSize": true
    63 				"fontSize": true
    52 			}
    64 			}
    53 		},
    65 		},
    54 		"__experimentalSelector": "p",
    66 		"__experimentalSelector": "p",
    55 		"__unstablePasteTextInline": true
    67 		"__unstablePasteTextInline": true,
       
    68 		"interactivity": {
       
    69 			"clientNavigation": true
       
    70 		}
    56 	},
    71 	},
    57 	"editorStyle": "wp-block-paragraph-editor",
    72 	"editorStyle": "wp-block-paragraph-editor",
    58 	"style": "wp-block-paragraph"
    73 	"style": "wp-block-paragraph"
    59 }
    74 }