mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
b69a1635de
We need to know when the document is modified in order to fire an "input" event and set the undo/redo state correctly. Observing keyup is imprecise, as it's hard to tell whether the key press actually modified anything. Newer browsers support mutation observers, which tell you precisely when something has changed. For IE9/10, Opera 12 and other older browsers, we fall back to observing keyup again. Fixes #26. |
||
---|---|---|
.. | ||
Constants.js | ||
document.html | ||
Editor.js | ||
intro.js | ||
Node.js | ||
outro.js | ||
Range.js | ||
TreeWalker.js |