ModelTreeWalkerOptions
The configuration of TreeWalker.
All parameters are optional, but you have to specify either boundaries or startPosition.
Properties
boundaries : null | ModelRange | undefinedmodule:engine/model/treewalker~ModelTreeWalkerOptions#boundariesRange to define boundaries of the iterator.
direction : ModelTreeWalkerDirection | undefinedmodule:engine/model/treewalker~ModelTreeWalkerOptions#directionignoreElementEnd : boolean | undefinedmodule:engine/model/treewalker~ModelTreeWalkerOptions#ignoreElementEndFlag indicating whether iterator should ignore
elementEndtags. If the option is true walker will not return a parent node of start position. If this option istrueeachModelElementwill be returned once, while if the option isfalsethey might be returned twice: for'elementStart'and'elementEnd'.shallow : boolean | undefinedmodule:engine/model/treewalker~ModelTreeWalkerOptions#shallowFlag indicating whether iterator should enter elements or not. If the iterator is shallow child nodes of any iterated node will not be returned along with
elementEndtag.singleCharacters : boolean | undefinedmodule:engine/model/treewalker~ModelTreeWalkerOptions#singleCharactersFlag indicating whether all consecutive characters with the same attributes should be returned one by one as multiple
ModelTextProxy(true) objects or as oneModelTextProxy(false).startPosition : ModelPosition | undefinedmodule:engine/model/treewalker~ModelTreeWalkerOptions#startPositionStarting position.