0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00
Squire/source
Neil Jenkins 50fb7c7c53 Preserve block style if pasting on blank line
If the clipboard contains block contents, e.g.

<blockquote><p>Foo</p></blockquote>

Then if you paste it into a block that already has content we merge the inline
content from the first block and discard its surrounding block.

However, if you paste into an empty block, we'll now keep the block and remove
the empty one in the document. This seems a reasonable heuristic for determining
user intent.
2017-11-01 10:45:21 +11: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 Better handling of <pre> 2017-09-05 11:42:54 +10: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 New (increase|decrease)ListLevel algorithms 2017-08-15 11:11:48 +10:00
Node.js Improved algorithm for inserting tree into range 2017-07-19 14:29:16 +02:00
outro.js Add support for the AMD 2015-07-14 00:33:38 +08:00
Range.js Preserve block style if pasting on blank line 2017-11-01 10:45:21 +11:00
TreeWalker.js Fix erroneous white-space removal when pasting inline fragment. 2015-06-23 09:46:15 +07:00