Skip to content

Support inline images #2285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tobiasBora opened this issue Feb 7, 2024 · 1 comment
Open

Support inline images #2285

tobiasBora opened this issue Feb 7, 2024 · 1 comment

Comments

@tobiasBora
Copy link

tobiasBora commented Feb 7, 2024

Your use case

What would you like to do?

When I'm writing a message, it would be really helpful to be able to copy/paste images in the body of the message.

Why would you like to do it?

If I give any tutorial/proof of something, I often like to add screenshots to help my reader follow what I say. Right now, copy/pasting an image adds the image in attachment, but it is not helpful as the position of this figure in the text is lost.

How would you like to achieve it?

Copy/paste should include the image inline at the position of the cursor, exactly like what is done, e.g. in github or stackexchange:

image

A new attachment tab should be created to be able to do it without copy/paste, for instance to include an image from a file. Not sure how matrix handles this on the protocol side, but I guess there must be a solution, at least people reported the use of inline images in the past here element-hq/element-web#16935 and here people mention that we can use src with url pointing to mxc:// url: element-hq/element-android#351, so I guess that the protocol already supports it, now it is just a matter of fixing the UI.

Have you considered any alternatives?

Adding as attachment, but as I said it is not helpful when the position of the image in the text is important

Additional context

No response

@HarHarLinks
Copy link

rendering is supported, but user friendly editing ("sending") is not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants