/// Remove all selection ranges from the DOM.
Remove all selection ranges from the DOM.
Remove all selection ranges from the DOM .
pub(crate) fn unset_caret_position() {
    let window = web_sys::window().expect("No global `window` exists");
    let sel = window.get_selection().unwrap().unwrap();
    sel.remove_all_ranges().unwrap();
}
pub ( crate ) fn unset_caret_position ( ) { let window = web_sys :: window ( ) . expect ( " " ) ; let sel = window . get_selection ( ) . unwrap ( ) . unwrap ( ) ; sel . remove_all_ranges ( ) . unwrap ( ) ; }
Remove all selection ranges from the DOM.
Remove all selection ranges from the DOM .