matrix-react-sdk
Replace Draft with Slate
#1890
Merged

Replace Draft with Slate #1890

dbkr merged 108 commits into develop from matthew/slate
ara4n
ara4n WIP (doesn't build yet) replacing draft with slate
75a2be1a
ara4n Merge branch 'develop' into matthew/slate
02947063
ara4n comment out more draft stuff
e62e43de
ara4n fix stubbing
f4ed820b
ara4n stub out more until it loads...
05eba3fa
ara4n stub out yet more
a2233a48
ara4n make slate actually work as a textarea
190f6d94
ara4n make it work for MD mode (modulo history)
ff42ef4a
ara4n make history work again
8b2eb2c4
ara4n blind fix to the overlapping sticker bug
984961a3
ara4n unbreak switching from draft to slate
cbb84328
ara4n make autocomplete selection work
410a1683
ara4n include the plaintext representation of a pill within it
d7c2c8ba
ara4n correctly send pills in messages
9c0c806a
ara4n fix cursor behaviour around pills
c91dcffe
ara4n fix NPEs when deleting mentions
33eaa84b
ara4n unbreak history scrolling for pills & emoji
877a6195
ara4n autocomplete polishing
c967ecc4
ara4n autocomplete polishing
5605439e
ara4n show all slashcommands on /
e06763cd
ara4n don't lose focus after a / command
4c3588d2
ara4n remove // support, as it never worked
79f7c5d6
ara4n Merge branch 'develop' into matthew/slate
721410b7
ara4n fix navigating history downwards on tall messages; remove obsolete code
dd0726f0
ara4n fix insert_mention
ddfe0691
ara4n delete duplicate propTypes(!!!)
a247ea2f
ara4n unify setState() and onChange()
7405b49b
ara4n remove dead removeMDLinks code
7ecb4e3b
ara4n remove spurious vendor prefixing
b10f9a9c
ara4n emojioneify the composer
c1000a7c
ara4n remove spurious comment
12a56e8b
ara4n Merge branch 'develop' into matthew/slate
b60ccad2
ara4n let onChange set originalEditorState
4eb69422
ara4n nudge towards supporting formatting buttons in MD
ae208da8
ara4n actually hook up RTE
e51554c6
ara4n remove unused html serializer
089ac337
ara4n Merge branch 'develop' into matthew/slate
4972a234
ara4n make RTE sending work
167742d9
ara4n let backspace delete list nodes in RTE
a4d9338c
ara4n exit list more sanely on backspace
58670cc3
ara4n fix strikethough & code, improve shift-return & backspace
d426c347
ara4n make file pasting work again
1536ab43
ara4n make HTML pasting work
1f05aea8
ara4n add h4, h5 and h6
572a3133
ara4n fix typo
65f0b057
ara4n remove HRs from H1/H2s
11751956
ara4n switch schema to match the MD serializer
f2116943
ara4n support links in RTE
c3a6a41e
ara4n use <p/> as our root node everywhere and fix blank roundtrip bug
d76a2aba
ara4n support sending inlines from the RTE.
a0d88a82
ara4n add pill and emoji serialisation to Md
e9cabf0e
ara4n remove the remaining Draft specific stuff from RichText
ad7782bc
ara4n comment out more old draft stuff
c5676eef
ara4n fix MD pill serialization
9aba046f
ara4n switch back to using commonmark for serialising MD when roundtripping
aac68667
ara4n refactor roundtripping into a single place
d799b7e4
ara4n unify buttons on the node type names, and make them work
f981d7b7
ara4n hide formatting bar for MD editor
e460cf35
ara4n comment out all the tests for now
b616fd02
ara4n fix lint
4439a046
ara4n make quoting work
7de45f8b
ara4n refocus editor after clicking on autocompletes
11cea616
ara4n
ara4n fix bug where selection breaks after inserting emoji
cace5e8b
ara4n fix emojioneifying autoconverted emoji
e7a4ffaf
ara4n refocus editor immediately after executing commands
794a60b9
ara4n fix wordwrap and pre formatting
6ac23248
ara4n escape blockquotes correctly
6fba8311
ara4n slate-md-serializer 3.1.0 now escapes correctly
fc1c4996
ara4n shift to custom slate-md-serializer
edc8264c
ara4n bump slate-md-serializer
6f3634c3
ara4n bump dep
a822a1c9
ara4n bump right dep
079b1238
ara4n comment out broken logic for stripping p tags & bump dep
95bfface
ara4n unbreak Markdown.toPlaintext
f40af434
ara4n bump dep
5b4a036e
ara4n bump dep
87c3e920
ara4n explain why we're now including <p/>s
fb5240aa
ara4n switch code schema to match slate-md-serializer
b0ff61f7
ara4n switch code schema to match slate-md-serializer
294565c4
ara4n switch to using 'code' for both blocks & marks to match md-serializer
864a33f9
ara4n ara4n changed the title Replace Draft with Slate [WIP] Replace Draft with Slate 8 years ago
ara4n
ara4n ara4n assigned lukebarnard1 lukebarnard1 8 years ago
ara4n
t3chguy
ara4n fix double-nested code blocks & bump md-serializer
ab412122
ara4n
ara4n unbreak keyboard shortcuts & ctrl-backspace
6299e188
ara4n
lukebarnard1
tulir
ara4n
ara4n
tulir
tulir
lukebarnard1
lukebarnard1
t3chguy
t3chguy commented on 2018-06-14
lukebarnard1
lukebarnard1 commented on 2018-06-13
lukebarnard1 lukebarnard1 unassigned lukebarnard1 lukebarnard1 8 years ago
lukebarnard1 lukebarnard1 assigned ara4n ara4n 8 years ago
t3chguy
t3chguy
t3chguy
t3chguy
ara4n
t3chguy
t3chguy
ara4n
ara4n
ara4n
ara4n merge develop
efdc5430
t3chguy import-type Change from slate
c6837af3
t3chguy take edge into consideration when moving focus region on arrow keys
372fa29a
t3chguy add rule to slate-md-serializer: make underlined and removed work for CM
483116fb
t3chguy remove debugger statement
faf17f06
t3chguy fix Control-Backspace after select-all
43204ea1
t3chguy add missing import
5b74c615
t3chguy modify ComposerHistoryManager
5bd4104c
ara4n pin slate to 0.33.4 to avoid https://github.com/ianstormtaylor/slate/…
8665f10f
ara4n add guide to slate's data formats and how we convert
83f26149
ara4n apply review feedback from @lukebarnard1
021409aa
ara4n unbreak modifier+space (e.g. emoji insert on macOS)
0d0934ad
t3chguy delint
8bcb987f
ara4n fix lint
51591a4d
t3chguy
t3chguy
t3chguy
ara4n
t3chguy navigateHistory only when at edges of document, to prevent Firefox bug
58301e5d
t3chguy remove trailing spaces to make linter happy (no-trailing-spaces)
100ecfe7
t3chguy fix fn call, fixes usage of SlashCommands
abbb69dc
t3chguy
t3chguy
t3chguy
t3chguy convert md<->rt if the stored editorState was in a different state
fd4f9679
t3chguy workaround for tommoor/slate-md-serializer#14
c3aef6e3
t3chguy
t3chguy
ara4n
t3chguy
t3chguy
ara4n
t3chguy
t3chguy fix MessageComposer not marking translatable strings. run gen-i18n
95909de4
t3chguy
t3chguy hide autocomplete when moving caret to match existing behaviour
3e05bf19
t3chguy null-guard savedState since now we're accessing its props
b4bc09c3
t3chguy
t3chguy
t3chguy specify alternate history storage key to prevent conflicts with draft
7405c5ef
t3chguy
t3chguy re-hydrate Values which have been serialized into LocalStorage
59a14f2c
ara4n stupid thinkotypo
d7ff7cd4
dbkr Merge pull request #2049 from matrix-org/t3chguy/slate_cont2
eb497d44
dbkr dbkr merged d16ac4d8 into develop 8 years ago
ara4n
t3chguy
t3chguy
lastmetroid
MTRNord
lastmetroid
MTRNord
lastmetroid
tulir
t3chguy
matrix-org matrix-org locked and limited conversation to collaborators 7 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
Labels
Milestone