mirror of
https://github.com/fastmail/Squire.git
synced 2025-03-09 22:21:35 -05:00
If an action modifies the selection while the editor is not focused, we cannot immediately set it in the DOM as this triggers focus. So instead we cache it and restore on focus. If getSelection is called before the editor is next focused, we need to return this new selection, not the current DOM selection. Fixes #259 |
||
---|---|---|
.. | ||
document.html | ||
squire-raw.js | ||
squire.js |