]> git.mxchange.org Git - friendica.git/commit
do not change cursor position while replacing upload-placeholder
authorJakobus Schürz <jakobus.schuerz@home.arpa>
Tue, 14 Jan 2025 04:49:48 +0000 (05:49 +0100)
committerJakobus Schürz <jakobus.schuerz@home.arpa>
Tue, 14 Jan 2025 04:49:48 +0000 (05:49 +0100)
commitc47323e358b9841eb287c71e54ae549ea5f6d62d
treeb57eda87ce15875398218a7b518924bb0dbeb798
parent47946b1cb79e41ee04faaaef61d519440f67d082
do not change cursor position while replacing upload-placeholder

fixes #14695

Save caret position just before replacing the upload-placeholder.
replace upload-placeholder
Set caret position to the position in textarea as before replacing action.
Setting caret position considers the position before or after
placeholder and therefore the textlength of server-response to find the
right place.
view/js/dropzone-factory.js