guardian / scribe

DEPRECATED: A rich text editor framework for the web platform

Home Page:http://guardian.github.io/scribe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undo manager cannot be disabled

nedrocks opened this issue · comments

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.

@nedrocks do you want to review the associated PR