equal
deleted
inserted
replaced
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/post-excerpt", |
4 "name": "core/post-excerpt", |
5 "title": "Post Excerpt", |
5 "title": "Excerpt", |
6 "category": "theme", |
6 "category": "theme", |
7 "description": "Display a post's excerpt.", |
7 "description": "Display the excerpt.", |
8 "textdomain": "default", |
8 "textdomain": "default", |
9 "attributes": { |
9 "attributes": { |
10 "textAlign": { |
10 "textAlign": { |
11 "type": "string" |
11 "type": "string" |
12 }, |
12 }, |
14 "type": "string" |
14 "type": "string" |
15 }, |
15 }, |
16 "showMoreOnNewLine": { |
16 "showMoreOnNewLine": { |
17 "type": "boolean", |
17 "type": "boolean", |
18 "default": true |
18 "default": true |
|
19 }, |
|
20 "excerptLength": { |
|
21 "type": "number", |
|
22 "default": 55 |
19 } |
23 } |
20 }, |
24 }, |
21 "usesContext": [ "postId", "postType", "queryId" ], |
25 "usesContext": [ "postId", "postType", "queryId" ], |
22 "supports": { |
26 "supports": { |
23 "html": false, |
27 "html": false, |
35 "padding": true |
39 "padding": true |
36 }, |
40 }, |
37 "typography": { |
41 "typography": { |
38 "fontSize": true, |
42 "fontSize": true, |
39 "lineHeight": true, |
43 "lineHeight": true, |
|
44 "__experimentalFontFamily": true, |
|
45 "__experimentalFontWeight": true, |
40 "__experimentalFontStyle": true, |
46 "__experimentalFontStyle": true, |
41 "__experimentalFontWeight": true, |
47 "__experimentalTextTransform": true, |
|
48 "__experimentalTextDecoration": true, |
42 "__experimentalLetterSpacing": true, |
49 "__experimentalLetterSpacing": true, |
43 "__experimentalTextTransform": true, |
|
44 "__experimentalDefaultControls": { |
50 "__experimentalDefaultControls": { |
45 "fontSize": true |
51 "fontSize": true |
46 } |
52 } |
|
53 }, |
|
54 "interactivity": { |
|
55 "clientNavigation": true |
47 } |
56 } |
48 }, |
57 }, |
49 "editorStyle": "wp-block-post-excerpt-editor", |
58 "editorStyle": "wp-block-post-excerpt-editor", |
50 "style": "wp-block-post-excerpt" |
59 "style": "wp-block-post-excerpt" |
51 } |
60 } |