You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When replying to an e-mail, the signature is inserted below the cited text. I believe that the culprit is https://github.com/roundcube/roundcubemail/blob/master/program/js/editor.js#L539, as the get_caret_pos function returns a large number that corresponds to the end of the message. Both setlectionStart and selectionEnd DOM properties of the <textarea> node are the same (equal to .value.length), meaning the caret is collapsed to the end of the text area.
Why does this code path even respect caret position? I would expect the settings above to result in sig being always inserted at the top...
The text was updated successfully, but these errors were encountered:
Configuration:
top_posting: true
,sig_below: false
,When replying to an e-mail, the signature is inserted below the cited text. I believe that the culprit is https://github.com/roundcube/roundcubemail/blob/master/program/js/editor.js#L539, as the
get_caret_pos
function returns a large number that corresponds to the end of the message. BothsetlectionStart
andselectionEnd
DOM properties of the<textarea>
node are the same (equal to.value.length
), meaning the caret is collapsed to the end of the text area.Why does this code path even respect caret position? I would expect the settings above to result in sig being always inserted at the top...
The text was updated successfully, but these errors were encountered: