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 3030 // Component.js
3131
3232 Component .config = {
33- name: ' CreateBlockBlockB' ,
34- editorFields: {
35- textArea: {
36- type: ' string' ,
37- label: ' My Message' ,
38- location: ' editor' ,
39- control: ' textarea' , // <--- Render a TextAreaControl field in the Gutenberg editor
40- },
41- },
33+ name: ' CreateBlockBlockB' ,
34+ editorFields: {
35+ textArea: {
36+ type: ' string' ,
37+ label: ' My Message' ,
38+ location: ' editor' ,
39+ control: ' textarea' , // <--- Render a TextAreaControl field in the Gutenberg editor
40+ },
41+ },
4242 };
4343 ```
4444
7272
7373 ``` js
7474 < div
75- style= {styles}
76- className= " rich-text"
77- dangerouslySetInnerHTML= {{ __html: attributes .richText }}
75+ style= {styles}
76+ className= " rich-text"
77+ dangerouslySetInnerHTML= {{ __html: attributes .richText }}
7878 / >
7979 ```
8080
125125 import save from ' ./save' ;
126126
127127 registerFaustBlock (MyFirstBlock, {
128- blockJson: metadata,
129- editFn: Edit,
130- saveFn: save,
128+ blockJson: metadata,
129+ editFn: Edit,
130+ saveFn: save,
131131 });
132132 ```
133133
You can’t perform that action at this time.
0 commit comments