SlidesCodeHighlighter icon indicating copy to clipboard operation
SlidesCodeHighlighter copied to clipboard

Font colour is not preserved on Firefox+GNU/Linux

Open Wheest opened this issue 5 years ago • 4 comments

Copying highlighted text on Firefox on Linux loses all font colour information.

Does not occur on Chromium.

Firefox version 68.11.0esr.

Wheest avatar Sep 11 '20 09:09 Wheest

Hi there! A few things:

  1. I can't easily test this, nor can I really guarantee support for various platforms/browsers/etc due to how clipboards work.
  2. Where are you pasting into? Google Slides? Something else?

romannurik avatar Oct 29 '20 02:10 romannurik

Hey Roman, thanks for the great tool! Same here, pasting into Google Slides and just like Wheest, Chromium works just fine on Linux.

When pasting from Firefox, the whole formatting is kept, except for the color. I had no luck after some research online, I have no idea why this happens.

pil0u avatar Jul 24 '21 21:07 pil0u

The issue still occurs for me. To clarify, pasting into Google Slides on Firefox from Chromium preserves the formatting, however copying from the webapp on Firefox loses the colour information.

Wheest avatar Aug 12 '21 09:08 Wheest

Chromium-based browsers automatically inline out-of-line style information on HTML elements copied into the clipboard, but Firefox does not. Presumably, either fixing https://bugzilla.mozilla.org/show_bug.cgi?id=406488 or changing the code highlighter to use inline CSS rather than classes would resolve this issue.

benjaminp avatar Oct 26 '22 22:10 benjaminp