gdscript-online.github.io icon indicating copy to clipboard operation
gdscript-online.github.io copied to clipboard

Unable to copy paste code copied from firefox into editor

Open PtrMan opened this issue 4 years ago • 7 comments
trafficstars

I am running firefo under linux.
I tried to copy some complicated code from gist.github.com to the editor but it doesn't handle the clipboard like any sane editor should.

PtrMan avatar Jan 11 '21 22:01 PtrMan

This is a Godot bug. It might be fixed in the 3.2.4 betas, but I'm not sure as clipboard support in HTML5 is really difficult to get right: https://github.com/godotengine/godot/pull/29298

In the meantime, try using a Chromium-based browser, it might work better.

Calinou avatar Jan 11 '21 23:01 Calinou

Still present, I think it might be a clipboard-reading permissions issue, as Edge (Chromium) requests permission to read the clipboard data), but this does not happen on other websites, such as GitHub.

SlitheringMule avatar Jul 07 '21 15:07 SlitheringMule

but this does not happen on other websites, such as GitHub.

Other websites don't need to use the clipboard API when you press Ctrl + C or Ctrl + V, since they use native DOM rendering, not a canvas rendered via WebAssembly.

Also, the hosted version of GDScript Online isn't updated to Godot 3.3 yet – it's still on 3.2.3 as of writing.

Calinou avatar Jul 07 '21 16:07 Calinou

@Calinou try using chrome and click allow to read your clipboard and you will see the text you pasted but if you did'nt click ctrl+v at the same time!!

CoderDood avatar Jan 10 '22 23:01 CoderDood

@Calinou try using chrome and click allow to read your clipboard and you will see the text you pasted but if you did'nt click ctrl+v at the same time!!

I've found that using the right-click → Copy/Paste TextEdit contextual menu works more reliably, but it still only works in Chromium-based browsers in my experience.

Calinou avatar Jan 10 '22 23:01 Calinou

I tried using ctrl c and ctrl v and it works fast and no probs

CoderDood avatar Jan 10 '22 23:01 CoderDood

@CoderDood Please use the Edit button (hidden behind the icon on the right of your comments) instead of multi-posting.

Calinou avatar Jan 11 '22 00:01 Calinou

Should work with custom firefox config, see https://github.com/godotengine/godot/issues/57382#issuecomment-1262280650

LinuxUserGD avatar Oct 09 '22 11:10 LinuxUserGD