When the selection range was made entirely outside of the container - we should treat it as a collapsed one and discard it. However, this wasn't the case with the trimRangeToContainer method I introduced in https://github.com/recogito/text-annotator-js/pull/134. Instead, it would make the outside range cover the container ⚠️
Issue
When the selection range was made entirely outside of the container - we should treat it as a collapsed one and discard it. However, this wasn't the case with the
trimRangeToContainer
method I introduced in https://github.com/recogito/text-annotator-js/pull/134. Instead, it would make the outside range cover the container ⚠️