package quill
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=93abc49d075a1754442ccf495645bc4fdc83e4c66391ec8aca8fa15d2b4f44d2
sha512=5eb958c51f30ae46abded4c96f48d1825f79c7ce03f975f9a6237cdfed0d62c0b4a0774296694def391573d849d1f869919c49008acffca95946b818ad325f6f
doc/quill.browser/Quill_browser/Brr_ext/Range/index.html
Module Brr_ext.Range
Range
start_container r is the start container node of the range r. Returns the raw JavaScript value (Jv.t) for the node.
end_container r is the end container node of the range r. Returns the raw JavaScript value (Jv.t) for the node.
common_ancestor_container r is the deepest node that contains both the start and end containers of the range r. See commonAncestorContainer. Returns the raw JavaScript value (Jv.t) for the node.
start_offset r is the offset within the start_container where the range r begins. See startOffset.
end_offset r is the offset within the end_container where the range r ends. See endOffset.
collapsed r is the collapsed state of the range r. Returns true if the range's start and end points are the same.
set_start r node_jv offset sets the start of the range r to offset within the node represented by the raw JavaScript value node_jv.
set_end r node_jv offset sets the end of the range r to offset within the node represented by the raw JavaScript value node_jv.
set_start_before r node_jv sets the start of the range r to be immediately before the node represented by the raw JavaScript value node_jv.
set_start_after r node_jv sets the start of the range r to be immediately after the node represented by the raw JavaScript value node_jv.
collapse r to_start collapses the range r to one of its boundary points. If to_start is true, collapses to the start point; otherwise, collapses to the end point.
select_node r node_jv sets the range r to contain the node represented by the raw JavaScript value node_jv and all of its contents.
select_node_contents r node_jv sets the range r to contain the contents within the node represented by the raw JavaScript value node_jv.
delete_contents r deletes the contents of the range r. This removes the selected text from the document.
clone r creates a copy of the range r. This is a new range object with the same start and end points.
to_string r gets the string representation of the range r. This is the text content of the range.