I could use some assistance in resolving this issue. Here is the stackblitz code I am currently working with
If you have any workarounds, please share them with me.
The caret/cursor keeps moving to the starting position and types backward. Can anyone help me find a solution within Angular (Typescript)? I had to opt for using a div instead of a textarea because of the presence of links.
(event.target as HTMLInputElement).focus();
document.execCommand('selectAll', true, null);
document.getSelection().collapseToEnd();