vue-email-editor icon indicating copy to clipboard operation
vue-email-editor copied to clipboard

TypeError: Cannot read property 'rows' of undefined

Open mgw2007 opened this issue 4 years ago • 5 comments

Screenshot from 2020-07-29 21-22-37 hi I applied the example code and I got this error

mgw2007 avatar Jul 29 '20 19:07 mgw2007

image 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.

DilanUse avatar Aug 02 '20 05:08 DilanUse

image 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!

tnorbs avatar Aug 03 '20 19:08 tnorbs

image 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

mgw2007 avatar Aug 03 '20 19:08 mgw2007

I passed "design" as a parameter to the editorLoaded() function and it worked! 😅

editorLoaded(design) { this.$refs.emailEditor.editor.loadDesign(design); },

tnorbs avatar Aug 03 '20 20:08 tnorbs

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?

rohanshukla94 avatar Aug 25 '20 07:08 rohanshukla94