# Cannot paste text into Text Box in HTML5 build

**URL:** <https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464>\
**Category:** Platform & Builds\
**Tags:** HTML5, paste, reproducible-bug, unreal-engine, bug-report, question, UMG\
**Created:** [September 13, 2017, 10:03am UTC](https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464 "2017-09-13T10:03:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanimalsOnParade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanimalsOnParade](https://forums.unrealengine.com/u/DanimalsOnParade)\
**Post date:** [September 13, 2017, 10:03am UTC](https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464/1 "2017-09-13T10:03:16Z")

</div>

I can’t paste text from the Windows clipboard into any UMG Text Boxes in an HTML5 build. The paste option is grayed out if I right click the Text Box in both Chrome and Firefox. Ctrl + V does nothing in Chrome and in Firefox it just types ‘v’ into the Text Box. Pasting works just fine in PIE and Windows64 build.

Steps to reproduce:

1. Create a new project
2. Add a UMG Text Box widget to the HUD
3. Build for HTML5
4. Try pasting any text into the Text Box in a running HTML5 build in Chrome or Firefox

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d2b909bf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d2b909bf](https://forums.unrealengine.com/u/anonymous_user_d2b909bf)\
**Post date:** [September 14, 2017, 3:29pm UTC](https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464/2 "2017-09-14T15:29:42Z")

</div>

Hello,

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-49754)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

You can track the report’s status as the issue is reviewed by our development staff. Please be aware that this issue may not be prioritized or fixed soon.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f0fea7ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f0fea7ad](https://forums.unrealengine.com/u/anonymous_user_f0fea7ad)\
**Post date:** [September 15, 2017, 2:26pm UTC](https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464/3 "2017-09-15T14:26:29Z")

</div>

This seems to be a current limitation with input handling on the HTML launch page.

It may be possible to work around this/implement it manually by implementing a paste handler ([onpaste Event](https://www.w3schools.com/jsref/event_onpaste.asp)) on the page, and inject the results as individual characters. Something like that is what a proper fix will involve doing as well, since the HTML page will need to register to browser’s paste events (in order to get data from the “real” operating system clipboard)

Looks like this was acknowledged already, so hopefully will get on the development queue soon.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e4e2181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e4e2181](https://forums.unrealengine.com/u/anonymous_user_7e4e2181)\
**Post date:** [December 8, 2017, 2:01am UTC](https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464/4 "2017-12-08T02:01:39Z")

</div>

juj, is the SDL layer still tripping this up? or, should we implement a copy and paste listener like you suggested above? this seems like a really quick thing to whip up.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f0fea7ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f0fea7ad](https://forums.unrealengine.com/u/anonymous_user_f0fea7ad)\
**Post date:** [January 18, 2018, 4:27pm UTC](https://forums.unrealengine.com/t/cannot-paste-text-into-text-box-in-html5-build/404464/5 "2018-01-18T16:27:14Z")

</div>

Sorry for the delay in replying Nick, was on a long Christmas vacation.

Check out [Multithreading 15/N: Synchronous stdio by juj · Pull Request #6082 · emscripten-core/emscripten · GitHub](https://github.com/kripken/emscripten/pull/6082/files#diff-8fd398136d2435d1c53386be85f6ff73R1233) with the ‘paste’ handler, that implements a copy-paste handler to a text area. I can’t immediately recall off the top of my head how SDL will behave here, but a similar approach could be used, except that Module.writeStdin() does not (yet at least) exist for SDL, since that PR is only for multithreaded ASMFS.
