Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Prevent autocomplete on paste, and verserev-ing text before and after : #3210

Merged
merged 4 commits into from
Jul 12, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Jul 11, 2019

Fixes element-hq/element-web#9818
Fixes element-hq/element-web#9985

Don't open autocomplete when pasting or dropping text.

Also, when pasting a link into an empty editor, we were inserting parts at index -1 (as the position was not found), and then 0, so the second pill-candidate part (:..) would be prepended to the first plain part (https). That is fixed, but also wouldn't happen anymore since pasting doesn't trigger autocomplete anymore, so you only create one plain part, no pill-candidate.

I couldn't reproduce with the exact steps in element-hq/element-web#9985 anymore, but suspect part of it might have been solved with the caret work I did before.

@bwindels bwindels force-pushed the bwindels/prevent-autocomplete-on-paste branch from e33a938 to dedf978 Compare July 11, 2019 16:47
@bwindels bwindels requested a review from a team July 11, 2019 16:47
src/editor/model.js Show resolved Hide resolved
@bwindels bwindels merged commit 7fc19e6 into develop Jul 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants