Can't Copy & Paste Text in Playground on Mobile iOS

I’m getting a few people into Babylon but some of them only have phones/ipads - long story.

I was surprised to find out that on mobile safari in the playground, I can’t paste text into the playground or copy text out of it. Is this expected? Would be great if we could do it!

cc @gabrieljbaker

you suggesting that I do the PR delta? :cowboy_hat_face:

1 Like

lol that was a miss ;D

cc @ryantrem

Please be patient we are closing v9 so we may not be able to help before a while

If anyone in the community is aware of such restriction please chime in :slight_smile:

1 Like

No worries at all, this isn’t an urgent one. Good luck with 9! We are excited for it on the Frame side :saluting_face:

Hey @gabrieljbaker ! I investigated, looks like the issue is two-fold:

  1. We are currently disabling contextMenu so there is no way to access the copy/paste functionality on touch, the fix would be this Enable copy/paste in playground on mobile by georginahalpern · Pull Request #17897 · BabylonJS/Babylon.js

  2. However I closed above PR because there is a bug in Monaco that has been reported by others, where the contextMenu ‘paste’ functionality doesn’t work (copy works fine) – it was fixed here but hasn’t yet been released (available in version 0.56.0). I pinged the feature owner to see when the build will be available. Once its available we can bump monaco version and enable context menu together :slight_smile:

    Thanks for reporting!

cc @ryantrem

4 Likes

A current option is to touch the line number to highlight the entire line, then ctrl-c to copy or ctrl-v to paste. Works for me on Samsung tablet. On samsung phone, I access the phone’s keyboard “Text editing” button to get copy/paste functionality.

Playground only allows copying one line at a time this way.