Issue #1616Opened November 29, 2018by JordanTGVG0 reactions

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)

artfNovember 30, 20180 reactions

This has nothing to do with GrapesJS itself, please investigate why in Edge you can find window.frames[0].editor

lock[bot]November 30, 20190 reactions

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.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.