# enter/utils

module

<a id="functions">

## Functions

<a id="function-getCopyOnEnterAttributes">

### `getCopyOnEnterAttributes( schema, allAttributes ) → IterableIterator<[ string, unknown ]>` _(internal)_

Returns attributes that should be preserved on the enter keystroke.

Filtering is realized based on `copyOnEnter` attribute property. Read more about attribute properties [here](module_engine_model_schema-ModelSchema.md#function-setAttributeProperties).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-enter/src/utils.ts#L22)

#### Parameters

* `schema: ModelSchema`

  Model's schema.

* `allAttributes: Iterable<[ string, unknown ]>`

  Attributes to filter.

#### Returns

* `IterableIterator<[ string, unknown ]>`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
