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

Commits
  • wire up editor component (somewhat hacky)
    bwindels committed 7 years ago
  • add converted prototype code
    bwindels committed 7 years ago
  • initial hookup editor code with react component
    bwindels committed 7 years ago
  • initial parsing of pills for editor
    bwindels committed 7 years ago
  • ignore react comment nodes when locating/setting caret
    bwindels committed 7 years ago
  • don't collapse whitespace in editor
    bwindels committed 7 years ago
  • some comments
    bwindels committed 7 years ago
  • remove logging
    bwindels committed 7 years ago
  • update the DOM manually as opposed through react rendering
    bwindels committed 7 years ago
  • run autocomplete after mounting
    bwindels committed 7 years ago
  • complete proptypes
    bwindels committed 7 years ago
  • initial support for auto complete in model and parts
    bwindels committed 7 years ago
  • initial hacky hookup of Autocomplete menu in MessageEditor
    bwindels committed 7 years ago
  • prefer textContent over innerText as it's faster
    bwindels committed 7 years ago
  • initial auto complete wrapper, make existing autocompleter work w/ model
    bwindels committed 7 years ago
  • make editor nicer
    bwindels committed 7 years ago
  • basic support for non-editable parts
    bwindels committed 7 years ago
  • keep auto complete code close to each other
    bwindels committed 7 years ago
  • rerender through callback instead of after modifying model
    bwindels committed 7 years ago
  • handle Escape properly
    bwindels committed 7 years ago
  • close autocomplete on enter
    bwindels committed 7 years ago
  • comment
    bwindels committed 7 years ago
  • fix autocompl. not always appearing/being updated when there is no part
    bwindels committed 7 years ago
  • catch this for now as caret behaviour is still a bit flaky
    bwindels committed 7 years ago
  • take non-editable parts into account for new caret position
    bwindels committed 7 years ago
  • put caret after replaced part if no caretOffset is given by autocomplete
    bwindels committed 7 years ago
  • after completion, set caret in next part at start
    bwindels committed 7 years ago
  • no comment nodes without react,so can bring this back to simpler version
    bwindels committed 7 years ago
  • WIP commit, newlines sort of working
    bwindels committed 7 years ago
  • find caret offset and calculate editor text in same tree-walking algo
    bwindels committed 7 years ago
  • don't show model for now
    bwindels committed 7 years ago
  • make logging quiet
    bwindels committed 7 years ago
  • even less logging
    bwindels committed 7 years ago
  • some pill styling
    bwindels committed 7 years ago
  • correctly parse BRs
    bwindels committed 7 years ago
  • draft of formatting
    bwindels committed 7 years ago
  • also serialize to text and method to tell us if we need html for model
    bwindels committed 7 years ago
  • add newline parts for text messages as well
    bwindels committed 7 years ago
  • send the actual m.replace event from composer content
    bwindels committed 7 years ago
  • add feature flag
    bwindels committed 7 years ago
  • consistent naming between serialize and deserialize modules
    bwindels committed 7 years ago
  • reload events when event gets replaced in the timeline
    bwindels committed 7 years ago
  • replace original event if there have been previous edits
    bwindels committed 7 years ago
  • pass feature flag to js-sdk
    bwindels committed 7 years ago
  • fix lint
    bwindels committed 7 years ago
  • send edit also in n.new_content field
    bwindels committed 7 years ago
  • PR feedback, cleanup
    bwindels committed 7 years ago
  • remove cruft from edit icon
    bwindels committed 7 years ago
  • use theme var for bg color
    bwindels committed 7 years ago
Loading