removeAllRanges (); and there was no selection. One workaround is to check if there is a selection first: if (window.getSelection().getRangeAt(0).
確定! 回上一頁