Skip to main content

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

Cannot paste in review

A topic by Tomes created 94 days ago Views: 396 Replies: 11
Viewing posts 1 to 6
(+3)

This has been reported before (see https://itch.io/t/1271931/cannot-paste-in-a-review) without solution - and that one was closed due to no new comments even though it was never answered nor resolved. 

Why can't you paste text into a review? Like others I like to draft it outside of web browsers, or in some cases I wrote a long Comment and actually should've put that in the Review notes. It won't let me paste into the Review text box; this seems like a bug and I'm apparently not the only one who has this problem. No error, just won't let you paste, but pasting into another text window works, so it's definitely itch.io.

A couple of things, in this forum, questions are usually answered by community members, not by the Itch staff, except for the administrator, who sometimes stops by and answers something.

The only official answer is the one you put in the link, and it implies that it is a bug.

Why hasn't it been fixed yet? I don't know, maybe it's hard to find the error or it only happens to some people or it's not something that's on the staff's priority list.

If you have web development knowledge, and you manage to find the cause, maybe it will help solve the problem.

I just tried with Firefox and I have the same problem and if I disable the paste event of that textbox, I can paste, so it seems to be a problem with the handling of the copy/paste events, but my web development knowledge is too basic to be able to track down the problem.

While I do not know how to disable a paste event, I did click that box that says stop on caught and uncaught exceptions and there is one when pasting. It is caught, because of that there is no error in console, like leafo asked for in the other thread.

This was on Chrome. Maybe it works on some other browser.

(+1)

I don't use Chrome, but I understand that all browsers should have a function that allows you to inspect pages, there you can inspect the text box and it should have the list of events somewhere.

Yep. Disabling this makes pasting possible. Something in that chain of events does fire a cought exception when pasting. The exception does not fire, when the event is disabled. It does not update the optional text on paste, only after some key press events.

 Failed to execute 'querySelectorAll' on 'Document': '.modal-body:visible' is not a valid selector. at Function.se [as find] (https://static.itch.io/lib.min.js?1730772173:2:7028) ...

So something to do with formatting I guess. There will be a zero width space be pasted, if you paste. So it does paste something, but that something was reduced to a space you cannot see.

Deleted 91 days ago
Moderator(+1)

Stop harassing people.

Deleted 91 days ago
Deleted 90 days ago
(1 edit)

Your reviews do not need to be so long that you need to draft them. Maybe that is why this is not fixed yet, too few people complained. Your review will only be seen by the developer. And maybe your followers and for 5 minutes in the global feed.

Why can't you paste text into a review?

Because that box is buggy and they never fixed it. Probably.

All a paste will do, is to enter " & ZeroWidthSpace ; " with quotes, no spaces.

There is a caught error exception in lib.min.js when pasting and then a type error.

SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '.modal-body:visible' is not a valid selector. at Function.se [as find] (<a href="https://static.itch.io/lib.min.js?1730772173:2:7028)">https://static.itch.io/lib.min.js?1730772173:2:7028)</a> at S.find (<a href="https://static.itch.io/lib.min.js?1730772173:2:25047)">https://static.itch.io/lib.min.js?1730772173:2:25047)</a> at S.init (<a href="https://static.itch.io/lib.min.js?1730772173:2:25536)">https://static.itch.io/lib.min.js?1730772173:2:25536)</a> at S (<a href="https://static.itch.io/lib.min.js?1730772173:2:1051)">https://static.itch.io/lib.min.js?1730772173:2:1051)</a> at init.appendPasteBox (<a href="https://static.itch.io/redactor.min.js?1730772173:39:1533)">https://static.itch.io/redactor.min.js?1730772173:39:1533)</a> at init.createPasteBox (<a href="https://static.itch.io/redactor.min.js?1730772173:39:1394)">https://static.itch.io/redactor.min.js?1730772173:39:1394)</a> at init (<a href="https://static.itch.io/redactor.min.js?1730772173:39:476)">https://static.itch.io/redactor.min.js?1730772173:39:476)</a> at HTMLDivElement.i (<a href="https://static.itch.io/lib.min.js?1730772173:2:88757)">https://static.itch.io/lib.min.js?1730772173:2:88757)</a> at HTMLDivElement.dispatch (<a href="https://static.itch.io/lib.min.js?1730772173:2:43064)">https://static.itch.io/lib.min.js?1730772173:2:43064)</a> at S.event.add.v.handle (<a href="https://static.itch.io/lib.min.js?1730772173:2:41048)
TypeError:">https://static.itch.io/lib.min.js?1730772173:2:41048)
TypeError:</a> Failed to execute 'selectNodeContents' on 'Range': parameter 1 is not of type 'Node'. at init.end (<a href="https://static.itch.io/redactor.min.js?1730772173:2:18882)">https://static.itch.io/redactor.min.js?1730772173:2:18882)</a> at init.html (<a href="https://static.itch.io/redactor.min.js?1730772173:20:39211)">https://static.itch.io/redactor.min.js?1730772173:20:39211)</a> at init.insert (<a href="https://static.itch.io/redactor.min.js?1730772173:39:3176)">https://static.itch.io/redactor.min.js?1730772173:39:3176)</a> at init.<anonymous> (<a href="https://static.itch.io/redactor.min.js?1730772173:39:991)">https://static.itch.io/redactor.min.js?1730772173:39:991)</a> at i (<a href="https://static.itch.io/lib.min.js?1730772173:2:88757)">https://static.itch.io/lib.min.js?1730772173:2:88757)</a> </anonymous>

Ii guess I tried to follow your post and couldn't get it to work cause that developer page is a nightmare to follow, and then version changes, and browsers, etc. etc. I will try again, but I just couldn't figure it out.

Thanks y'all for the answers though.

(+3)

If you talk about the workaround to get pasting to work in the box:

You click rate this game.

You click inside the box with right button and select Inspect from the context menu.

There should be several sub-windows. One should show the current css styles. 

The sub-window with the styles has several sections, one is called Event Listeners.

Select Event Listeners and scroll down to "paste" and trash the event. There literally is a trash can icon on Chrome.

Now, pasting works in the box.

This was description for Chrome, but should look similar in the other browsers. (The optional text will not be overwritten by the pasting event. But it will dissappear by a keyboard event, as soon as you type)

Thanks for the guide, it worked! It's a shame it's not fixed after all these years but your workaround will make it a lot easier for me (had to switch browsers constantly and after an update, not even my alt browser worked anymore).

(+1)

Thank you community, you rock!

(+1)

I couldn't get the specific Chrome solution to work (I was unable to 'trash' the event, and I saw no trash icon. Pressing DEL or delete didn't work either).

However I found that in Brave Browser, you can just right-click the text box and select the option 'Force Paste' to paste whatever you like.