0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-02-26 08:45:29 -05:00
Squire/build
Neil Jenkins c5a7c622fe Preserve target block formatting when pasting inline text
If you have a document like this:

<div style="font-size:20px">XXXX</div>
<div style="font-size:14px">YYYY</div>

and you select the YYYY text and copy it, we just copy the text to the clipboard
and not the block formatting. This is fine.

Now you select XXXX and paste. Because that removes all content from the first
block we were replacing it with the block formatting from the clipboard. But
this has no block formatting, so you essentially just "lost" the font-size:20px,
which broke user expectations.

(If the copied text *did* have block formatting, then replacing the block is
the correct thing to do in this case, which we still do.)
2020-02-24 14:50:22 +11:00
..
document.html Require <html data-squireinit="true"> to auto-instantiate. 2015-07-06 12:19:21 +07:00
squire-raw.js Preserve target block formatting when pasting inline text 2020-02-24 14:50:22 +11:00
squire.js Preserve target block formatting when pasting inline text 2020-02-24 14:50:22 +11:00