package quill
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a9a8a9787f8250337187bb7b21cb317c41bfd2ecf08bcfe0ab407c7b6660764d
sha512=fe13cf257c487e41efe2967be147d80fa94bac8996d3aab2b8fd16f0bbbd108c15e0e58c025ec9bf294d4a0d220ca2ba00c3b1b42fa2143f758c5f0ee4c15782
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.