Initial support for editing messages #2952
wire up editor component (somewhat hacky)
6599d605
add converted prototype code
9f98a6c0
initial hookup editor code with react component
76bb56a2
initial parsing of pills for editor
6be6492c
ignore react comment nodes when locating/setting caret
8f0074f8
don't collapse whitespace in editor
ebdb9fcb
some comments
0f38753d
remove logging
85adc895
update the DOM manually as opposed through react rendering
a2f1f499
run autocomplete after mounting
a765fdf9
complete proptypes
7507d0d7
initial support for auto complete in model and parts
1330b438
initial hacky hookup of Autocomplete menu in MessageEditor
317e88be
prefer textContent over innerText as it's faster
bb73521f
initial auto complete wrapper, make existing autocompleter work w/ model
4bb8b799
make editor nicer
fc87a27c
basic support for non-editable parts
5e6367ab
keep auto complete code close to each other
aa1b4bb9
rerender through callback instead of after modifying model
64b17119
handle Escape properly
ffff66a9
close autocomplete on enter
22587da5
comment
bc14d4f5
fix autocompl. not always appearing/being updated when there is no part
580a8987
catch this for now as caret behaviour is still a bit flaky
8d97c003
take non-editable parts into account for new caret position
1a577eed
put caret after replaced part if no caretOffset is given by autocomplete
2c3453d3
after completion, set caret in next part at start
7a85dd4e
no comment nodes without react,so can bring this back to simpler version
9f597c7e
WIP commit, newlines sort of working
7ebb6ce6
find caret offset and calculate editor text in same tree-walking algo
9e0816c5
don't show model for now
4ff37ca0
make logging quiet
a3b02cf0
even less logging
c44fed4b
some pill styling
c98e716c
correctly parse BRs
eaf43d72
draft of formatting
2fbe73e6
also serialize to text and method to tell us if we need html for model
3abdf6b1
add newline parts for text messages as well
34dbe5f3
send the actual m.replace event from composer content
759a4a54
add feature flag
036cb02c
consistent naming between serialize and deserialize modules
e2388afb
reload events when event gets replaced in the timeline
15df72e6
replace original event if there have been previous edits
45991bc3
pass feature flag to js-sdk
0b18ff52
bwindels
force pushed
from
d7fd4814
to
0b18ff52
6 years ago
fix lint
fd31e793
bwindels
changed the title Message editing UI Initial support for editing messages 6 years ago
bwindels
marked this pull request as ready for review 6 years ago
send edit also in n.new_content field
dc21faa2
turt2live
approved these changes
on 2019-05-14
jryans
commented
on 2019-05-15
PR feedback, cleanup
d83e278f
remove cruft from edit icon
6b932d58
use theme var for bg color
22533ba2
bwindels
merged
edc10016
into develop 6 years ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub