Options
All
  • Public
  • Public/Protected
  • All
Menu

The Range variant where insertNode will operate on a range disjointed from the current selection state.

Hierarchy

Index

Properties

Optional insertOnNewLine

insertOnNewLine: boolean

Boolean flag for inserting the content onto a new line. No-op for ContentPosition.Outside

Optional insertToRegionRoot

insertToRegionRoot: boolean

Boolean flag for inserting the content onto root node of current region. If current position is not at root of region, break parent node until insert can happen at root of region. This option only takes effect when insertOnNewLine is true, otherwise it will be ignored.

position

position: Range | Range

range

range: Range

The range to be targeted when insertion happens.

Optional replaceSelection

replaceSelection: boolean

Boolean flag for inserting the content onto a new line. No-op for ContentPosition.Begin, End, and Outside

Optional updateCursor

updateCursor: boolean

Whether need to update cursor.

Generated using TypeDoc