This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Code block does not work, when editor is nested within structure #229
Labels
type: bug 🐛
Issue is a bug; PR is a bugfix
Describe the bug
When an editor field is nested within a structure field, I cannot use the code field properly, not even when using the
pretty: false
option as advised elsewhere.I am able to create a code field and enter a code snippet just fine, but when I reload the panel page, the code actually disappears (it's not displayed at all in the editor block, see screenshots).
Before reloading:
After reloading:
(Edit: Also, now I noticed in the panel's console it gives me this error:
block component does not exist: paragraph
).In the content file, the code is now listed like this:
And when I try to use this in my template, using
it renders the literal JSON string like this in the frontend:
Would be great, if I could somehow be able to use code blocks within editor fields within structure fields as well! :)
The text was updated successfully, but these errors were encountered: