Closed agentphoenix closed 3 weeks ago
The content is necessary to convert between html and json. It's not implemented yet, but would be necessary for allowing for Source Code editing.
@awcodes so are the custom blocks supposed to be adding that content
array as well when editing directly through the editor?
Would have to double check, but it's most likely coming from the conversion from html to json since the faker doesn't create json directly. It has to be parsed. And using the content as a json string for the blocks data is safer than trying to store them as attributes on the html element, due to escaping.
What happened?
When using the Faker utilities to generate a block, there is an extra
content
key with the JSON values that duplicates all of the data as a JSON string.How to reproduce the bug
This will produce the following content:
My expectation is that the extra
content
key isn't there since it isn't present when using the package in the web app.Package Version
0.3.11-alpha
PHP Version
8.3.8
Laravel Version
10.48.14
Which operating systems does with happen with?
macOS
Notes
No response