0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00
Squire/source
Neil Jenkins 70a2b48333 Return cached selection if not focused
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
2017-02-11 09:40:56 -08:00
..
Clean.js Fix empty lines missing when copying plain text 2017-01-10 10:05:35 +11:00
Clipboard.js Fix potential infinite loop on cut 2017-01-19 17:08:39 +11:00
Constants.js Improve copying of plain text on windows 2016-12-11 12:32:25 +11:00
document.html Require <html data-squireinit="true"> to auto-instantiate. 2015-07-06 12:19:21 +07:00
Editor.js Return cached selection if not focused 2017-02-11 09:40:56 -08:00
exports.js Export useful Node helper functions 2016-12-07 18:42:48 +11:00
intro.js make it possible to replace the reference to e.fragment in willPaste event, also add isDefaultPrevented method to that event 2015-05-01 14:07:28 -04:00
KeyHandlers.js Ensure moving boundaries up tree never passes root 2017-01-13 15:15:59 +11:00
Node.js Add pointer from root node to Squire instance. 2016-12-07 17:54:13 +11:00
outro.js Add support for the AMD 2015-07-14 00:33:38 +08:00
Range.js Ensure moving boundaries up tree never passes root 2017-01-13 15:15:59 +11:00
TreeWalker.js Fix erroneous white-space removal when pasting inline fragment. 2015-06-23 09:46:15 +07:00