Closed ProxiBlue closed 5 years ago
Ok, so I figured out the issue is prototype.js! The project I am working on also loads prototype, and that is the root cause.
I have tried numerous ways to prevent this, as per https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/ however nothing shot of removing prototype.js from loading works. (which I cannot do)
Any suggestions?
The same has been happening in my project as well, though I'm not using prototype.js, I hope there is a solution to this, any help would be appreciated!
Any suggestions?
If you can't remove prototype from the project the only possible solution I see is to put the editor in an iframe
The same has been happening in my project as well, though I'm not using prototype.js, I hope there is a solution to this, any help would be appreciated!
Well @goprime10 if you're not using prototype.js I'd say it's another kind of issue, "Cannot read property 'indexOf' of undefined" means nothing without, at least, a stack trace. So if you need help, create a new issue, by following the template, please
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.
I found a previous result here: https://github.com/artf/grapesjs/issues/1772 however I can still not get it to work, using the most basic setup, as per your guide, and the answer given in that question.
My script:
and the page is simply:
which results in
and no functionality.
Any help/advise?