matrix-react-sdk
Initial support for editing messages
#2952
Merged

Initial support for editing messages #2952

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

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone