textarea paste wrap issue
Posted: Tue Aug 28, 2018 5:19 pm
I've run into an odd issue that I think might be an bug in the textarea widget. I've tried several different settings for word wrap, size, etc, but I'm not able to solve it. Here is what's happening:
Text pasted in textarea shifts when a key is pressed. After the paste, when a key is pressed or the textarea loses focus, the CR/LF on the first line is removed and the text that follows shifts up. This messes up the word wrap. It only happens with a key event (down, up, press) and not with a mouse event (right click | paste). If you paste with Ctrl-V it will happen immediately. If you paste with the mouse, it doesn't happen until you press a key or click outside of the textarea. I'll attach a couple of screenshots.
Thanks for your help,
Kevin
Text pasted in textarea shifts when a key is pressed. After the paste, when a key is pressed or the textarea loses focus, the CR/LF on the first line is removed and the text that follows shifts up. This messes up the word wrap. It only happens with a key event (down, up, press) and not with a mouse event (right click | paste). If you paste with Ctrl-V it will happen immediately. If you paste with the mouse, it doesn't happen until you press a key or click outside of the textarea. I'll attach a couple of screenshots.
Thanks for your help,
Kevin