Javascript: SelectionBounds.length Property
Description
The length of the selection in characters.
Syntax
<number> SelectionBounds.lengthExamples
The following example demonstrates SelectionBounds.length in a practical document-editing workflow. The length of the selection in characters.
function inspectLength(selectionBounds) {
const length = selectionBounds.length;
console.log("length:", length);
}