grapesjs: GrapesJS does not work in IE11

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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 48 (24 by maintainers)

Most upvoted comments

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]);
    }
}

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

@artf I’m busy next 2 days but I will be look at as soon as possible