grapesjs editor.gethtml() not work in Edge Explorer
Question
In my project i'm using this code to get the html from the grapesjs editor:
var html = window.frames[0].editor.getHtml();
my editor is in iframe and is displayed in another page, and it works good in chrome and mozzila but in edge i cannot get the html code because i can see this javascript error:
Unable to get property 'getHtml' of undefined or null reference
It seems like cannot find the editor with the previous code? why? is there any suggestions?
Answers (2)
This has nothing to do with GrapesJS itself, please investigate why in Edge you can find window.frames[0].editor
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.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1327
[QUESTIONS] Replacing selected text and getting html
Hi! Im trying to replace selected text with a code (random code). It's works, i can see the code, but when i do editor.getHtml() not. If i...
Issue #1026
GrapeJS can't render HTML code
Hi, I intergrated GrapesJS to my application (asp.net MVC) and it works but sometimes GrapesJS can't render HTML. First, I clone html from...
Issue #898
editor.getHtml() outside the iframe of grapesjs.
How should I get the getHtml() outside the grapesjs editor. I have a save button outside the iframe of editor. I am not getting the current...
Issue #1150
[Question] Get Uploads as Base64
Hello All, I need help integrating this into a web app that I have. Everything renders and works as expected but I am trying to get the upl...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.