Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

add checkbox to edit project page which will allow to use shared clipboard

A topic by Euphoreka7 created Aug 19, 2022 Views: 9,160 Replies: 8
Viewing posts 1 to 7
(+8)

right now iframes don't allow to use shared clipboard

can be enabled by adding allow="clipboard-read; clipboard-write self https://html.itch.zone" to iframe

it can remain disabled for already existing games. but can be enabled for games requiring it

like example some apps for text editing, pasting source text into text areas/inputs, and copying edited results back into the clipboard

(+1)

i'm making an app using Godot, and I want a user to be able to copy and paste data from/to clipboard. The problem is I can't find any way to get the OS clipboard text. If I get the idea right it would solve it!

Moderator moved this topic to Ideas & Feedback

any hope for implementation?

it doesn't have to be a part of project settings. it can be just enabled

tbh i don't really understand why it's not enabled by default. itch.io uses iframes with different subdomain. it's not something from other websites

gotm.io is a better example. they embed canvas html tag directly into a project page. and no iframe limitation

i found 2 other posts with the same problem:

https://itch.io/t/1971050/unblocking-clipboard-api

https://itch.io/t/2104659/iframe-cant-read-from-clipboard


this problem can be partially solved on the application side. 

unity has plugin which allows to enable copy-paste to both sides

in case of godot - copying to clipboard can be enabled by javascript callback. and NO way to copy into an input/textarea with those iframe limitations


please fix it. it's just one line change from your side. and in my first post i mentioned which additional attributes will allow to enable it 

There are already these attributes enabled:

allow="autoplay; fullscreen *; geolocation; microphone; camera; midi; monetization; xr-spatial-tracking; gamepad; gyroscope; accelerometer; xr; cross-origin-isolated" allowfullscreen="true" allowtransparency="true" webkitallowfullscreen="true"

Whats one more?

do you see "clipboard-read; clipboard-write self https://html.itch.zone" in this list? i don't

That’s what i mean by “one more”.

(+1)

It means we have so much, why cant we add another.