input element cursor position end code example
Example: set cursor to end of input
const el = this.editor.ngxWigEditable.nativeElement;
setTimeout(() => {
var range = document.createRange();
range.selectNodeContents(el);
range.collapse(false);
var sel = window.getSelection();
sel.removeAllRanges();
sel.addRange(range);
});