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/preformatted", |
4 "name": "core/preformatted", |
5 "title": "Preformatted", |
5 "title": "Preformatted", |
6 "category": "text", |
6 "category": "text", |
7 "description": "Add text that respects your spacing and tabs, and also allows styling.", |
7 "description": "Add text that respects your spacing and tabs, and also allows styling.", |
8 "textdomain": "default", |
8 "textdomain": "default", |
9 "attributes": { |
9 "attributes": { |
10 "content": { |
10 "content": { |
11 "type": "string", |
11 "type": "rich-text", |
12 "source": "html", |
12 "source": "rich-text", |
13 "selector": "pre", |
13 "selector": "pre", |
14 "default": "", |
|
15 "__unstablePreserveWhiteSpace": true, |
14 "__unstablePreserveWhiteSpace": true, |
16 "__experimentalRole": "content" |
15 "__experimentalRole": "content" |
17 } |
16 } |
18 }, |
17 }, |
19 "supports": { |
18 "supports": { |
23 "__experimentalDefaultControls": { |
22 "__experimentalDefaultControls": { |
24 "background": true, |
23 "background": true, |
25 "text": true |
24 "text": true |
26 } |
25 } |
27 }, |
26 }, |
|
27 "spacing": { |
|
28 "padding": true, |
|
29 "margin": true |
|
30 }, |
28 "typography": { |
31 "typography": { |
29 "fontSize": true, |
32 "fontSize": true, |
30 "lineHeight": true, |
33 "lineHeight": true, |
|
34 "__experimentalFontFamily": true, |
|
35 "__experimentalFontWeight": true, |
31 "__experimentalFontStyle": true, |
36 "__experimentalFontStyle": true, |
32 "__experimentalFontWeight": true, |
37 "__experimentalTextTransform": true, |
|
38 "__experimentalTextDecoration": true, |
33 "__experimentalLetterSpacing": true, |
39 "__experimentalLetterSpacing": true, |
34 "__experimentalTextTransform": true, |
|
35 "__experimentalDefaultControls": { |
40 "__experimentalDefaultControls": { |
36 "fontSize": true |
41 "fontSize": true |
37 } |
42 } |
|
43 }, |
|
44 "interactivity": { |
|
45 "clientNavigation": true |
38 } |
46 } |
39 }, |
47 }, |
40 "style": "wp-block-preformatted" |
48 "style": "wp-block-preformatted" |
41 } |
49 } |