Edge browser can't paste from <pre> sections correctly
Official development repository for Vim's builtin TOhtml plugin
Brought to you by:
fritzophrenic
Originally created by: fritzophrenic
Original report by Ben Fritz (Bitbucket: fritzophrenic NA, ).
Possibly a bug in Edge, so it's not clear anything can be done about it, but TOhtml content generated with default options will not paste properly in Edge. All the linebreaks are removed.
As a workaround, you can "let g:html_no_pre=1" and the paste is fine.
Diff:
This is overcome by events. It was written back before Edge became a Chromium-based browser. Testing shows that paste works fine in Edge now. Newlines are preserved and all text is pasted. In Google Docs, the pasted text even has formatting.
Tested on docs.google.com and https://www.editpad.org/tool/online-rich-text-editor.
Settings were entirely default:
<meta name="settings" content="use_css,no_foldcolumn,prevent_copy=,use_input_for_pc=none">
Microsoft Edge
Version 116.0.1938.69 (Official build) (64-bit)