0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00
Squire/source
Neil Jenkins 950e122c5c Improve default plain text cut/copy
Instead of using innerText, this now uses the getTextContentsOfRange
helper fn to work out the white space, so is consistent with the
editor's getSelectedText method and should be higher fidelity.

Note, you can still override the behaviour by supplying a toPlainText
fn in the editor config (such as the one you can find at
https://github.com/fastmail/overture/blob/master/source/html/toPlainText.js)
2023-10-02 13:27:19 +11:00
..
keyboard Fix format intent lost after pressing Space 2023-09-27 14:56:00 +10:00
node Use Array.from for older browser support 2023-02-22 11:13:38 +11:00
range Replace nbsp with regular sp when extracting text 2023-10-02 13:23:12 +11:00
Clean.ts Remove redundant <span> after replacing styles 2023-02-01 13:52:53 +11:00
Clipboard.ts Improve default plain text cut/copy 2023-10-02 13:27:19 +11:00
Constants.ts Squire 2.0 2023-01-23 13:18:29 +11:00
Editor.ts Extract getTextContentsOfRange helper fn 2023-10-02 13:12:51 +11:00
Legacy.ts Squire 2.0 2023-01-23 13:18:29 +11:00
Squire.ts Squire 2.0 2023-01-23 13:18:29 +11:00