You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2020. It is now read-only.
However, during the compilation process, an error is thrown:
elem.classList.toggle('test-class', false);
TypeError: Cannot read property 'toggle' of undefined
at Object.DIFF_DELETE (
This is coming from the underlying quill.js module, specifically this part in the dist/quill.js file:
var elem = document.createElement('div');
elem.classList.toggle('test-class', false);
if (elem.classList.contains('test-class')) {
var _toggle = DOMTokenList.prototype.toggle;
DOMTokenList.prototype.toggle = function (token, force) {
if (arguments.length > 1 && !this.contains(token) === !force) {
return force;
} else {
return _toggle.call(this, token);
}
};
}
The document object is not available on the server - would it be possible to design a workaround for this scenario (as this will be an invaluable addition to the library). Happy to help in any way.
@surmon-china
I'm following the official Angular instructions to set up server side rendering using Angular Universal.
However, during the compilation process, an error is thrown:
This is coming from the underlying quill.js module, specifically this part in the
dist/quill.js
file:The
document
object is not available on the server - would it be possible to design a workaround for this scenario (as this will be an invaluable addition to the library). Happy to help in any way.Some ideas here: KillerCodeMonkey/ngx-quill#91, KillerCodeMonkey/ngx-quill#57
The text was updated successfully, but these errors were encountered: