Is CoreCode block example still working? #1643
-
Hello. I am new at Faust.js and i am following this guide: https://faustjs.org/guide/how-to-create-a-block-from-the-wordpress-blocks-list I added Code block into hello-world post but there is no console message. CoreCode block attributes is not showing in console. Where i am wrong?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @bilalmalkoc. You have all the scaffolding correct for this implementation except for one thing. That's the Note: You can verify you have all the correct data by logging the You can see a quick reference from the documentation here to use the
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the information. |
Beta Was this translation helpful? Give feedback.
Hey @bilalmalkoc. You have all the scaffolding correct for this implementation except for one thing. That's the
WordPressBlocksViewer
. It is briefly mentioned in the docs but we noticed it could be called out a little better and I have ticketed for us to add more detail around the viewer. You have queried and created all you need for getting the data for theCoreCode
block but now you need to display it. That is done using theWordPressBlocksViewer
.Note: You can verify you have all the correct data by logging the
editorBlocks
portion of your query.You can see a quick reference from the documentation here to use the
WordPressBlocksViewer
to display theblocks
but the full doc is here. On…