vue-email-editor
vue-email-editor copied to clipboard
TypeError: Cannot read property 'rows' of undefined
hi
I applied the example code and I got this error
The error is due to the fact that the "loadDesign" method does not expect to receive an empty object, if you pass it a valid model the error does not occur, but if you pass it an empty object it does. The error is that in the example they put it as if it could receive an empty object but it is not.
The error is due to the fact that the "loadDesign" method does not expect to receive an empty object, if you pass it a valid model the error does not occur, but if you pass it an empty object it does. The error is that in the example they put it as if it could receive an empty object but it is not.
What do you mean by "valid model"? I'm having the same issue and couldn't find an answer so far... Thanks in advance!
The error is due to the fact that the "loadDesign" method does not expect to receive an empty object, if you pass it a valid model the error does not occur, but if you pass it an empty object it does. The error is that in the example they put it as if it could receive an empty object but it is not.
I am using code from github example without any changes
thanks
I passed "design" as a parameter to the editorLoaded() function and it worked! 😅
editorLoaded(design) { this.$refs.emailEditor.editor.loadDesign(design); },
I passed "design" as a parameter to the editorLoaded() function and it worked! 😅
editorLoaded(design) { this.$refs.emailEditor.editor.loadDesign(design); },
Still not working, are you passing any parameters to v-on:load="editorLoaded"
as well?