Interface

ViewTreeWalkerOptions (engine/view)

@ckeditor/ckeditor5-engine/src/view/treewalker

interface

The configuration of ViewTreeWalker.

Filtering

Properties

  • boundaries : null | ViewRange | undefined

    Range to define boundaries of the iterator.

  • direction : ViewTreeWalkerDirection | undefined

    Walking direction.

    Defaults to 'forward'

  • ignoreElementEnd : boolean | undefined

    Flag indicating whether iterator should ignore elementEnd tags. If the option is true walker will not return a parent node of start position. If this option is true each ViewElement will be returned once, while if the option is false they might be returned twice: for 'elementStart' and 'elementEnd'.

  • shallow : boolean | undefined

    Flag 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 elementEnd tag.

  • singleCharacters : boolean | undefined

    Flag indicating whether all characters from ViewText should be returned as one ViewText (false) or one by one as ViewTextProxy (true).

  • startPosition : ViewPosition | undefined

    Starting position.