Contains functions used for composing model tree by operations.
Those functions are built on top of node, and it's child classes', APIs.
_remove( range ) → Array.<Node>
Removed nodes in given range. Only flat ranges are accepted.
Range containing nodes to remove.
_setAttribute( range, key, value )
Sets given attribute on nodes in given range.
Range containing nodes that should have the attribute set.
Key of attribute to set.
insert( position, nodes ) → Range
Inserts given nodes at given position.
Position at which nodes should be inserted.
Nodes to insert.
Range spanning over inserted elements.
move( sourceRange, targetPosition ) → Range
Moves nodes in given range to given target position. Only flat ranges are accepted.
Range containing nodes to move.
Position to which nodes should be moved.
Range containing moved nodes.
normalizeNodes( nodes ) → Array.<Node>
Normalizes given object or an array of objects to an array of nodes. See
NodeSet for details on how normalization is performed.
Objects to normalize.
Show private items