Struggling with managing copy and paste functionality in my current application development project by guiding input into a hidden field. The issue arises when I apply visibility: hidden
to the target field, as typing or pasting text into it doesn't seem to function properly. My approach involves utilizing a <textarea>
element to capture the text and focusing on it using
document.select('textAreaID').focus()
, which works unless visibility is set to hidden via CSS.
Is there an effective method to conceal the text area yet still enable pasting or typing into it? Alternatively, are there other techniques to redirect copying behavior to generate editable text chunks for parsing and manipulation?
(Note: There's some d3 code in the fiddle as I'm leveraging it for another purpose due to its convenient APIs.)