Chrome based browsers not copying text/html styling

216 Views Asked by At

I noticed Chrome-like browsers are not copying HTML formatting. Unlike Firefox.

I used xclip to inspect the clipboard and the targets are different.

Firefox:

  • TIMESTAMP
  • TARGETS
  • MULTIPLE
  • text/html
  • text/_moz_htmlcontext
  • text/_moz_htmlinfo
  • UTF8_STRING
  • COMPOUND_TEXT
  • TEXT
  • STRING
  • text/plain;charset=utf-8
  • text/plain
  • text/x-moz-url-priv

Chrome:

  • TIMESTAMP
  • TARGETS
  • SAVE_TARGETS
  • MULTIPLE
  • STRING
  • UTF8_STRING
  • TEXT
  • text/plain
  • text/plain;charset=utf-8

The problem being, my website uses Summernote editor and users are having trouble getting the content copied to Office apps, is there any way around this?

0

There are 0 best solutions below