Skip to content
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

[Bug]: Copying in dark mode copies the dark style #3954

Closed
1 task done
adoxentor opened this issue Sep 8, 2024 · 5 comments · May be fixed by #3958
Closed
1 task done

[Bug]: Copying in dark mode copies the dark style #3954

adoxentor opened this issue Sep 8, 2024 · 5 comments · May be fixed by #3958
Labels
bug Something isn't working

Comments

@adoxentor
Copy link

What happened?

When copying text from an answer in dark mode, the copied content retains the dark mode styling (light text on dark background) when pasted into other applications like Google Docs.
This is unlike other writing assistance platforms, such as ChatGPT, which have implemented a fix for this issue.

Expected behavior: The copied text should paste with default styling in the destination application, regardless of the current theme mode in our application.

I'm opening a PR with a fix

Steps to Reproduce

  1. set to dark mode
  2. copy text from an answer
  3. paste into Google Docs

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@adoxentor adoxentor added the bug Something isn't working label Sep 8, 2024
@danny-avila
Copy link
Owner

Nothing we can do about this, it’s a browser feature. Use the copy to clipboard buttons (below the message, or top right of code lock) or export to markdown

@fuegovic
Copy link
Collaborator

fuegovic commented Sep 8, 2024

You can try ctrl+shift+v to paste text without any formatting

@adoxentor
Copy link
Author

adoxentor commented Sep 9, 2024

I have a fix (the same one chatgpt and multiple other sites uses)
pr: #3958

@adoxentor
Copy link
Author

You can try ctrl+shift+v to paste text without any formatting

It also removes semantic formatting like headings, numbering, or tables.

@adoxentor
Copy link
Author

@danny-avila it works in ChatGPT and I copied the behavior in the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants