matrix-react-sdk
New composer: show format bar on selection
#3386
Merged

New composer: show format bar on selection #3386

bwindels merged 27 commits into develop from bwindels/cider-formatbar
bwindels
bwindels make DocumentOffset compatible with what is returned from dom/getCaret
648ae37f
bwindels allow getting the DocumentOffset for any node+offset, not just focusNode
eb873018
bwindels allow starting a range with both positions known already
0d02ab59
bwindels show format bar when text is selected
65ddfc0a
bwindels sort positions in Range constructor, so start always comes before end
48f1bf18
bwindels add getter for intersecting parts of range, and total length
77b14beb
bwindels implement bold support in format bar
7dc39baa
bwindels bwindels force pushed from 0ce75c2b to 322775e3 6 years ago
bwindels make Range start and end public
c15dfc3c
bwindels fixup: css, we have 5 buttons
e7db6608
bwindels first impl of inline formatting
d4c7992f
bwindels first impl of quote formatting
7f501b2a
bwindels whitespace (in model)
47d8d86b
bwindels move inline formatting code out of react component
b72d1a78
bwindels move quote formatting out of react component
b35a3531
bwindels add support for inline/block code formatting
6e694c11
bwindels fixup: remove now unused import
4c04bc19
bwindels make _replaceRange internal only
7a01d140
bwindels only increase offset if caret hasn't been found yet
4691108a
bwindels improve algorithm to reduce selection to text node + charactar offset
e0668e85
bwindels fixup: improve quote and code block newline handling
42c37d82
bwindels be more forgiving with offset that don't have atNodeEnd=true
037ac29c
bwindels support update callback setting selection instead of caret
2ea556e0
bwindels fix css lint
af535986
bwindels bwindels force pushed from 322775e3 to af535986 6 years ago
bwindels bwindels requested a review 6 years ago
bwindels bwindels removed review request 6 years ago
bwindels
bwindels ensure selection is not lost upon clicking format bar in chrome
e3d70f39
bwindels bwindels requested a review 6 years ago
bwindels better i18n
4ef9fa53
turt2live turt2live removed review request 6 years ago
turt2live turt2live requested a review from turt2live turt2live 6 years ago
turt2live
turt2live approved these changes on 2019-09-05
bwindels copyright is solely assigned to matrix foundation now, copy paste error
d2949bab
bwindels add comment about positioning the format bar
92c0c1a4
bwindels
bwindels bwindels merged 02681d50 into develop 6 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone