grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Cannot read property 'mediaText' of undefined

Open tverney opened this issue 9 years ago • 8 comments

Hi everyone,

Im trying to use grapejs in an angular project that have an web builder inside. We are loading templates from html + css, but, when loading in grapejs, its having this problem: "Cannot read property 'mediaText' of undefined". Its something related to CSS, but I dont know how to solve it.

Any idea?

tverney avatar Sep 13 '17 12:09 tverney

Probably due to @keyframes (or some other CSS instance with node.cssRules property), if it is the case, please close this issue and subscribe here #276

artf avatar Sep 14 '17 12:09 artf

@artf We will check it out and if its, close the issue. Thanks!

tverney avatar Sep 19 '17 20:09 tverney

any update Thiago?

artf avatar Oct 12 '17 22:10 artf

@artf Thanks for reply. I found an workaround loading the css from an external stylesheet, like uploading in cloudfront. That solved the issue.

tverney avatar Oct 14 '17 19:10 tverney

any update on this? Im having the same problem as well. and moving to an external stylesheet just isnt going to be possible

richardabear avatar Apr 13 '18 09:04 richardabear

@Owchzzz I made a workaround in the project by adding the extra CSS by an CDN in head. But the problem still, for me, it`s not related with @keyframes.

tverney avatar Apr 14 '18 00:04 tverney

@tverney please share code on how you made the addition with CDN. Would it work for a user trying to import their code by pasting it? I am trying to get a workaround with the @keyframes problem given that there are some bugs with the recent releases (hopefully to be corrected in the next release) that makes me it easier for me to stick with older versions for now. The keyframes issue is just the holdback.

ivanezeigbo avatar Jun 18 '18 00:06 ivanezeigbo

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 17 '19 12:09 lock[bot]