puts @'mentions directly in compose box

This commit is contained in:
Mouse Reeve
2021-01-19 16:16:22 -08:00
parent 0700a71803
commit 2411b4fe79
4 changed files with 7 additions and 6 deletions

View File

@ -112,7 +112,9 @@ function toggleAction(e) {
// set focus, if appropriate
var focus = el.getAttribute('data-focus-target');
if (focus) {
document.getElementById(focus).focus();
var focusEl = document.getElementById(focus);
focusEl.focus();
setTimeout(function(){ focusEl.selectionStart = focusEl.selectionEnd = 10000; }, 0);
}
}