File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
packages/block-editor-utils Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change 2424 // Component.js
2525
2626 Component .config = {
27- name: ' CreateBlockBlockB' ,
28- editorFields: {
29- textArea: {
30- type: ' string' ,
31- label: ' My Message' ,
32- location: ' editor' ,
33- control: ' textarea' , // <--- Render a TextAreaControl field in the Gutenberg editor
34- },
35- },
27+ name: ' CreateBlockBlockB' ,
28+ editorFields: {
29+ textArea: {
30+ type: ' string' ,
31+ label: ' My Message' ,
32+ location: ' editor' ,
33+ control: ' textarea' , // <--- Render a TextAreaControl field in the Gutenberg editor
34+ },
35+ },
3636 };
3737 ```
3838
6666
6767 ``` js
6868 < div
69- style= {styles}
70- className= " rich-text"
71- dangerouslySetInnerHTML= {{ __html: attributes .richText }}
69+ style= {styles}
70+ className= " rich-text"
71+ dangerouslySetInnerHTML= {{ __html: attributes .richText }}
7272 / >
7373 ```
7474
119119 import save from ' ./save' ;
120120
121121 registerFaustBlock (MyFirstBlock, {
122- blockJson: metadata,
123- editFn: Edit,
124- saveFn: save,
122+ blockJson: metadata,
123+ editFn: Edit,
124+ saveFn: save,
125125 });
126126 ```
127127
You can’t perform that action at this time.
0 commit comments