You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fakerpress currently generates blocks of basic HTML, which show up in the block editor as "Classic Editor" blocks. It would be great if the content it generated was native to the block editor and used stock blocks and block options (align, color, drop cap, etc).
The text was updated successfully, but these errors were encountered:
I was hoping for this functionality too, but I also happen to know how difficult this would be to pull off. The PHP side of WordPress does not include any way to easily "render" blocks to the HTML format that is stored in the database. There are ways to get it to sort-of work using render_block(), but if you aren't feeding the results from parse_blocks() to it the output will often not work correctly. You can't just feed the function some expected block attributes and expect it to actually render the HTML. Currently the client-side JavaScript in the block editor is responsible for creating the commented HTML that is stored in the database. I'm not sure what the solution to this problem would be but it would future-proof this plugin tremendously.
This is 100% in the roadmap. But I am waiting for Block Editor to be bit more stable on how certain blocks behave. So that we have a stable "API" for generating the randomness.
Fakerpress currently generates blocks of basic HTML, which show up in the block editor as "Classic Editor" blocks. It would be great if the content it generated was native to the block editor and used stock blocks and block options (align, color, drop cap, etc).
The text was updated successfully, but these errors were encountered: