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

Copy events from the timeline in an IRC log style format #3370

Closed
wants to merge 6 commits into from

Conversation

ara4n
Copy link
Member

@ara4n ara4n commented Sep 1, 2019

rather than as incoherent gunks of HTML and text, which ends up including avatars and RRs and context menus and all sorts.

It's debatable as to whether this is the right approach: we go and walk the displayed DOM, putting the innerHTML/innerText of the event contents into a new wrapper built from the event's metadata.

Instead, we could make EventTile support rendering to a logger mode, which would then help us finally fix element-hq/element-web#2630. However, this means that we would be completely rebuilding the clipboard rather than basing it on what the user actually copied (and for instance, it would be much harder to handle partial event selections).

This solution could always evolve in that direction in future though.

thoughts welcome.

@jryans
Copy link
Collaborator

jryans commented Sep 4, 2019

rather than as incoherent gunks of HTML and text, which ends up including avatars and RRs and context menus and all sorts.

Is this actually happening for you today? We've tried to prevent this somewhat by setting user-select: none on things that generally shouldn't be copied.

Aha, after some testing, it appears Firefox does listen to this CSS when copying, but Chrome does not. 😕

@dbkr
Copy link
Member

dbkr commented Jul 29, 2024

Testing, it seems the behaviour here is sensible now so I think this PR is no longer necessary.

@dbkr dbkr closed this Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: export chat logs
4 participants