element.bind('$destroy', function () {
element.off(ctrl.listeningEvents.join(" "));
element.froalaEditor('destroy') // this line
element = null;
});
This is the code snippet taken from angular-froala.js file. The above mentioned line is throwing the
RangeError: Maximum call stack size exceeded
at String.replace () error for me. I am froala editor in semantic ui modal. On closing the modal it throughs that error.
element.bind('$destroy', function () { element.off(ctrl.listeningEvents.join(" ")); element.froalaEditor('destroy') // this line element = null; });
This is the code snippet taken from angular-froala.js file. The above mentioned line is throwing the RangeError: Maximum call stack size exceeded at String.replace () error for me. I am froala editor in semantic ui modal. On closing the modal it throughs that error.