Custom Blocks not importable

This issue has been tracked since 2021-12-16.

Hi all, I'm trying to follow the instruction of integrating customer blocks into the editor, but it throws always some error. I setup the editor following https://docs.unlayer.com/docs/getting-started and also set a user id. The save button appears for rows and when I click it, there is a request to backend to save it (status 200, "success": true). Now when I reload the site the custom block doesn't appear again.

Also when I tried to manually add the content (the data prop) of the POST /blocks request into the blocks property it throws an error:

Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')

and it points to this code:

return null == o || o.rows.forEach((function(t) {
                    var r = e.rows[t]
                      , n = [];
                    r.columns.forEach((function(t) {

where it can't iterate over r.columns because r is undefined.

I created also a custom block in the unlayer UI but that also doesn't seem to appear in the editor when I set my project id.

So how you guys make the custom blocks work?

More Details About Repo
Owner Name unlayer
Repo Name react-email-editor
Full Name unlayer/react-email-editor
Language JavaScript
Created Date 2017-10-01
Updated Date 2022-12-05
Star Count 3598
Watcher Count 48
Fork Count 627
Issue Count 163

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date