Undo manager cannot be disabled
nedrocks opened this issue · comments
Ned Rockson commented
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: ''};
Robert Rees commented
Okay good spot, I'll take a look. setHtml
should probably respect the option.
Robert Rees commented
@nedrocks do you want to review the associated PR