Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AllSelection

A selection type that represents selecting the whole document (which can not necessarily be expressed with a text selection, when there are for example leaf block nodes at the start or end of the document).

class AllSelection extends Selection {
constructor(doc: Node);
eq(other: Selection): boolean;
getBookmark(): {
map(): any;
resolve(doc: Node): AllSelection;
}
;
map(doc: Node): AllSelection;
replace(tr: Transaction, content?: Slice): void;
toJSON(): any;
}

§Extends

§
Selection
[src]

§Constructors

§
new AllSelection(doc: Node)
[src]

Create an all-selection over the given document.

§Methods

§
eq(other: Selection): boolean
[src]
§
getBookmark(): {
map(): any;
resolve(doc: Node): AllSelection;
}
[src]
§
replace(tr: Transaction, content?: Slice): void
[src]
§
toJSON(): any
[src]