Issue #1616💬 AnsweredOpened November 29, 2018by JordanTGVG0 reactions

Grapesjs editor.gethtml() not work in Edge Explorer

快速解答by artf

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

Read full answer below ↓

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, 2018

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

lock[bot]November 30, 2019

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

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.