element-hq / element-hq/element-web

Pasting messages from Element into rich-text editors results in numbered lists

Open
#22,229 4 comments 1 reaction 0 assignees View on GitHub
A-Timeline A11y O-Occasional S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

From a message, copy paste some of the text. For example, triple-click on a single line of text to select the paragraph and copy:

![image](https://user-images.githubusercontent.com/76716/168659726-c0fffc6e-9c7e-467b-8e52-002342dc425e.png)

Then paste it into another program. For example, Slack or a Google Spreadsheet, or Superhuman, or another place that does rich-text formatting of the pasted text.

### Outcome

#### What did you expect?

I expected the text to be pasted as regular text, like this:

![image](https://user-images.githubusercontent.com/76716/168660193-062d9f92-ad80-4986-b38f-587693eb5249.png)

#### What happened instead?

The single line of copied text gets turned in to several numbered points:

![image](https://user-images.githubusercontent.com/76716/168660054-7050055a-d48c-4921-b599-ad993052ef9f.png)

### Operating system

Linux, NixOS Unstable

### Application version

Element version: 1.10.11 Olm version: 3.2.8

### How did you install the app?

Nix

### Homeserver

chat.nixos.org

### Will you send logs?

No

---

Note this is identical to #7081, which was spuriously closed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.