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

SelectionBookmark

A lightweight, document-independent representation of a selection. You can define a custom bookmark type for a custom selection class to make the history handle it well.

interface SelectionBookmark {
map: (mapping: Mappable) => SelectionBookmark;
resolve: (doc: Node) => Selection;
}

§Properties

§
map: (mapping: Mappable) => SelectionBookmark
[src]

Map the bookmark through a set of changes.

§
resolve: (doc: Node) => Selection
[src]

Resolve the bookmark to a real selection again. This may need to do some error checking and may fall back to a default (usually TextSelection.between) if mapping made the bookmark invalid.