9d3bbc2c46d1885ed0dde7b8600ab904aeb81bab
treeToCraftState's ROOT re-key branch reparented nodes['ROOT'].nodes children to 'ROOT' but not nodes['ROOT'].linkedNodes children. For a ColumnLayout- or Section/BackgroundSection/FormContainer-rooted AI `replace`, flattenTreeForCraft puts content in linkedNodes (col-N / section-inner etc.) whose parent was left pointing at the OLD root id -- which is then deleted, leaving a dangling parent reference that breaks select/move/delete of those nodes in the Craft.js editor. Now the same loop that reparents nodes[] children also reparents linkedNodes children. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description
Visual drag-and-drop website builder using GrapesJS
Languages
TypeScript
61.2%
HTML
17.1%
JavaScript
17%
CSS
3.6%
PHP
0.8%
Other
0.3%