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