Closed nedrocks closed 8 years ago
If I set undo to disabled, scribe complains because _lastItem is null and part of the constructor calls setHTML which has a call for
_lastItem.content = <whatever>
There needs to be an else block to allow for this. Currently, my work around is to simply set
Scribe.prototype._lastItem = {content: ''};
Okay good spot, I'll take a look. setHtml should probably respect the option.
setHtml
@nedrocks do you want to review the associated PR
If I set undo to disabled, scribe complains because _lastItem is null and part of the constructor calls setHTML which has a call for
_lastItem.content = <whatever>
There needs to be an else block to allow for this. Currently, my work around is to simply set
Scribe.prototype._lastItem = {content: ''};