element-hq / element-hq/element-web
WISIWIG editor does not cooperate with the clipboard consistently
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. I type Apple-key b (for bold) then b then Apple-key b (to end bold) and n and a blank
2. I see **b**n (as expected)
3. Then I type Apple-key a (to select all) and I see the 3 letters marked as selected
4. Then I type Apple-key c to copy the 3 letters to the clipboard
5. Then I type Apple-key v to paste the 3 letters again.
6. I see **bn **, i.e. the 3 letters replace the existing letters, but the change from bold to non-bold is lost
### Outcome
#### What did you expect?
I expect that the markup-info in the text is honored by the editor when using copy-paste
#### What happened instead?
The markup-info of the beginning supersedes any changes in the string.
### Operating system
macOS 12.6 (21G115)
### Browser information
Safari 16.0 (17614.1.25.9.10, 17614)
### URL for webapp
https://develop.element.io
### Application version
Version von Element: 5da11ae43654-react-0173e211294c-js-b44787192db1 Version von Olm: 3.2.12
### Homeserver
synod.im
### Will you send logs?
Yes
Contributor guide
Assessment
This issue has not been assessed yet.