mirror of
https://github.com/fastmail/Squire.git
synced 2025-02-01 20:01:27 -05:00
c5a7c622fe
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.) |
||
---|---|---|
.. | ||
Clean.js | ||
Clipboard.js | ||
Constants.js | ||
document.html | ||
Editor.js | ||
exports.js | ||
intro.js | ||
KeyHandlers.js | ||
Node.js | ||
outro.js | ||
Range.js | ||
TreeWalker.js |