📅  最后修改于: 2022-03-11 14:59:32.249000             🧑  作者: Mango
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);
});