Skip to content

Copy-paste does not preserve formatting (Firefox MacOS) #125

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
eyssette opened this issue Mar 10, 2025 · 4 comments
Open

Copy-paste does not preserve formatting (Firefox MacOS) #125

eyssette opened this issue Mar 10, 2025 · 4 comments
Labels
firefox A bug in FireFox itself

Comments

@eyssette
Copy link

Hello,

Thank you again for this great application!

I've noticed what seems to be a new bug: on Firefox (apparently only on Mac), copy-pasting does not preserve formatting.

To reproduce: on this page, if you copy the text from an example and paste it back in the same place, the formatting is lost.

https://medv.io/codejar/

@eyssette
Copy link
Author

It's probably related to this:

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/136
The plaintext-only value of the contenteditable global attribute indicates that the element is editable; rich text formatting is disabled and any formatting in pasted text is automatically stripped (Firefox bug 1922724).

@antonmedv antonmedv added the firefox A bug in FireFox itself label Mar 10, 2025
@antonmedv
Copy link
Owner

Yea) I'm not interested in fixing FF bugs (as it is too many to), but will be happy to merge a PR with a fix.

@eyssette
Copy link
Author

Seems to work :
#126

@zamfofex
Copy link

zamfofex commented Mar 10, 2025

@eyssette Would you mind verifying whether my changes in #118 resolve this? I don’t have Firefox 136 to test it, unfortunately, but I fixed some issues related to Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
firefox A bug in FireFox itself
Projects
None yet
Development

No branches or pull requests

3 participants