Skip to content

New composer: pasting images is a bit buggy #10795

@AlexDaniel

Description

@AlexDaniel

The issue didn't exist in the previous composer. When pasting images (that are stored in the clipboard in a specific way), the data is pasted both as a file and as binary garbage in the composer.

This is how it looks:
image

Notice the weird characters on the bottom in the composer.

To reproduce:

  • Linux
  • Riot on Firefox, with new composer enabled in the labs
  • Take a screenshot using this command:
import png:- | xclip -selection c -t image/png
  • Select part of the screen, now the screenshot is in your clipboard. Go to Riot, click on the composer and paste the image. You'll see “Upload files” dialog (which is correct) and also some unicodey characters in the composer (which should be fixed).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions