0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00
Squire/source
Neil Jenkins 57f2d37c1d Work around Chrome bug not rendering text
There seems to be a bug in Chrome where it will sometimes not render
some of the text in the DOM when there are multiple zero-width spaces
around the beginning and ends of inline tags (not sure on the exact
details).

Steps to reproduce (prior to this commit):

1. Turn on bold and underlined text
2. Type something in bold and underlined text
3. Turn off bold and underline
4. Try to type something — it will not show up! That is, until you press
   the enter key and we remove the zero-width spaces.
2023-10-04 12:28:38 +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 Fix empty string on clipboard if plainTextOnly 2023-10-03 11:13:02 +11:00
Constants.ts Squire 2.0 2023-01-23 13:18:29 +11:00
Editor.ts Work around Chrome bug not rendering text 2023-10-04 12:28:38 +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