package quill
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8e277ed56615d388bc69c4333e43d1acd112b5f2d5d352e2453aef223ff59867
sha512=369eda6df6b84b08f92c8957954d107058fb8d3d8374082e074b56f3a139351b3ae6e3a99f2d4a4a2930dd950fd609593467e502368a13ad6217b571382da28c
doc/quill.editor/Quill_editor/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.