ContainerSelection
Class defined in model/ContainerSelection.js#28 inherits from

A selection spanning multiple nodes.

Example
var containerSel = doc.createSelection({
  type: 'container',
  containerId: 'body',
  startPath: ['p1', 'content'],
  startOffset: 5,
  endPath: ['p3', 'content'],
  endOffset: 4,
});
Returns
model/Container

The container node instance for this selection.

Collapse a selection to chosen direction.

Parameters
directionString

either left of right

Returns
PropertySelection

Helper to create selection fragments for this ContainerSelection.

Used for selection rendering, for instance.

Returns
Selection.Fragment[]

Fragments resulting from splitting this into property selections.

Splits a container selection into property selections.

Returns
PropertySelection[]