You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems a possible solution would be something like:
editor.addEventListener("paste",function(ev){// cancel pasteev.preventDefault();// get text representation of clipboardvartext=ev.clipboardData.getData('text/plain');// insert text manuallyeditor.textContent+=text;});
When I copy-paste code from GitHub into the Brython test console, it turns out to be almost invisible:
I can work around this by using the Ctrl+Shift+V hotkey, but it would be nice if just Ctrl+V would work as well.
Here is the code I tried to paste:
The text was updated successfully, but these errors were encountered: