What does this error mean in IE10/11:
Error: Could not complete the operation due to error 800a025e.
And how would I debug it?
It says its this line:
this.nativeSelection.removeAllRanges();
https://code.google.com/p/rangy/source/browse/trunk/src/js/core/wrappedselection.js#416
See it in action here: http://panmedia.github.io/raptor-editor/tests/cases/selection/selection-expand.html
I had this error coming up recently, I fixed it with the following chceck:
var sel = window.document.getSelection();
if (sel.rangeCount > 0 && sel.getRangeAt(0).getClientRects().length > 0) {
sel.removeAllRanges();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With