Module

enter/utils

@ckeditor/ckeditor5-enter/src/utils

module

Filtering

Functions

  • getCopyOnEnterAttributes( schema, allAttributes ) → IterableIterator<tuple>

    Returns attributes that should be preserved on the enter keystroke.

    Filtering is realized based on copyOnEnter attribute property. Read more about attribute properties here.

    Parameters

    schema : Schema

    Model's schema.

    allAttributes : Iterable<tuple>

    Attributes to filter.

    Returns

    IterableIterator<tuple>