Closed BCleverly closed 2 years ago
I confirm having the same issue on the demo
I had to make a quick work around for the project im working on. I created a javascript function that took the current contents of an editor and stored it in the database in the lb_blocks table. I then had a dropdown menu within the page that allowed the users to select a re-usable block and inject it into the current pages with the Laraberg.getContent() and Laraberg.setContent():
let content = Laraberg.getContent();
let blockHtml = ''; // code here to get block html
content = content+blockHtml;
Laraberg.setContent(content);
It's not as elegant but it achieved the same goal to a degree.
could you share this code please?
I'm unable to share the code due to it being used in proprietary software but can walk you through what to do.
This isn't a great solution as you lose the ability to have the JS interactivity from what i remember. We eventually changed over to GrapesJs for this instead.
This issue has been automatically marked as stale because it has been open for 60 days with no activity.
Describe the bug If you make use of reusable blocks then go to edit them it looks like react/gutenberg can't keep up with the nesting in some way shape or form or is getting into areas where it thinks there will be an infinite loop about happen
To Reproduce Steps to reproduce the behavior:
Expected behavior Be able to update the re-usable block with new data and not have the editor crash.
Screenshots
Environment (please complete the following information):