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
restore later from the design
htmlEditorRef?.current?.editor?.loadDesign(design)
=> All good
Scenario with errors:
create a simple button
save and load in the same way
then I see this error:
TypeError: Cannot convert undefined or null to object
at Function.values (<anonymous>)
at editor.js:2:1762513
at produce (editor.js:2:3506765)
at 16 (editor.js:2:1762490)
at P (editor.js:2:1765883)
at P (editor.js:2:1765875)
at P (editor.js:2:1765875)
at P (editor.js:2:1765875)
at P (editor.js:2:1765875)
at P (editor.js:2:1765875)
Data with the button created using this package, version 1.7.11:
Hi guys,
Scenario with no errors:
htmlEditorRef?.current?.editor?.exportHtml((data) => {
const newTemplate = {
name: values.name,
content: data.html,
design: JSON.stringify(data.design),
subject: values.subject
};
htmlEditorRef?.current?.editor?.loadDesign(design)
=> All good
Scenario with errors:
then I see this error:
Data with the button created using this package, version 1.7.11:
Am I doing something wrong? I guess not since it's working for other elements, but not for buttons...
The text was updated successfully, but these errors were encountered: