BUG: Editor Undo is removing collection and unable to replace the component
Question
The collection of the selected component before Undo

The collection of the selected component after Undo

Code to replace the component with new component

Uncaught TypeError: n.getEl is not a function and Uncaught TypeError: t.getSelectors is not function are the errors reported on save. I’m unable to replace the selected component with new component.
Answers (3)
Sorry, but without a reproducible demo, this issue doesn't make sense to me
Hi artf,
Please find the demo video of the issue grapejs-issue.zip.
Ok, as you're not able to create a reproducible demo, I have to close this...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2547
Unable to drag an element if style has bottom or right values
Hi @artf , If any component CSS has bottom or right values , not able to drag them. Values are generating as NaN. Attached the screenshot f...
Issue #3139
FEAT: Disable <table> being auto amended during save
I'm getting an issue, when saving a custom HTML component (just a table), grapes JS will modify it. before save after save. So I want to be...
Issue #1990
[QUESTIONS] need to call method before remove the html component
Hi, I need to call the method before remove the HTML component. how can I do that calling method like editor.on('block:drag:stop', function...
Issue #2529
[Bug] Can't select/remove/edit gjs-row component if gjs-cell removed first.
Can't choose/select/remove gjs-row after removing gjs-cell separately. Row that is left without cell exists on wrapper but can't be highlig...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.