question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GrapesJS does not work in IE11

See original GitHub issue

GrapesJS does not work in IE11 as many of the JS function are not supported (e.g. remove()… , “`”, blob.map…

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:48 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
tomichalcommented, Nov 20, 2017

No worries @artf I’m trying to go through the Edge / IE errors and fix them in my project. So far made a fix for an “… Argument not optional…” error. This seems to make MS Edge happy enough for the editor to run without any more errors (not sure about IE 11 yet). In case it would help others here is the code I added to my project (it needs to be added such that the browser gets it after the grapesjs JS code:

// 'detectIE()' sourced from https://codepen.io/gapcode/pen/vEJNZN
if (detectIE()) {
    var originalCreateHTMLDocument = DOMImplementation.prototype.createHTMLDocument
    DOMImplementation.prototype.createHTMLDocument = function (title) {
      if (!title) title = ''
      return originalCreateHTMLDocument.apply(document.implementation, [title]);
    }
}
1reaction
sura2kcommented, Dec 2, 2017

@tomichal Thanks, that worked. In IE 11 I had to replace dragHelper.remove() with dragHelper.parentNode.removeChild(dragHelper).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - GrapesJS does not work in IE11 - - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >
Promises not working on IE11 - Stack Overflow
Results: on chrome and Firefox I can see all the logs but on IE11 I only see "Inside executeSomething" which means the problem...
Read more >
Use Custom CSS Parser - GrapesJS
To work fast and easier GrapesJS needs to compile a simple string (HTML/CSS) into structured nodes (nested JS objects). Fortunately, most of the ......
Read more >
Dropping Support For IE11 Is Progressive Enhancement
Any time or effort spent getting your JavaScript working in IE11 is wasted ... But the flipside is that 99 million hits are...
Read more >
GrapesJS: Free and Open source Web Builder Framework
Generally any 'template system', that you'd find in various applications like CMS, is composed by the structure (HTML), style (CSS) and variables, which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found