/// Store the current selection range.
/// Return the stored range.
Store the current selection range.
Return the stored range.
Store the current selection range . Return the stored range .
pub fn store_selection_range(&mut self) -> RangeResult {
        trace!("[compose_area] store_selection_range");
        let range_result = self.fetch_range();
        trace!(
            "[compose_area]   Range: {}",
            range_result.to_string().replace('\n', "")
        );
        // Ignore selections outside the wrapper
        if !range_result.outside {
            // Note: We need to clone the range object. Otherwise, changes to the
            // range in the DOM will be reflected in our stored reference.
            self.selection_range = range_result.clone().range.map(|range| range.clone_range());
        }
        range_result
    }
pub fn store_selection_range ( & mut self ) -> RangeResult { trace ! ( " " ) ; let range_result = self . fetch_range ( ) ; trace ! ( " " range_result to_string ( ) replace ( '\n' " " ) ) ; // Ignore selections outside the wrapper if ! range_result . outside { // Note: We need to clone the range object. Otherwise, changes to the // range in the DOM will be reflected in our stored reference. self . selection_range = range_result . clone ( ) . range . map ( | range | range . clone_range ( ) ) ; } range_result }
Store the current selection range.
Store the current selection range .
&mut self