# DocumentCompareComputeChangesOptions

interface

Describes how the document changes are computed.

<a id="properties"></a>

## Properties

<a id="member-aiSource"></a>

### `aiSource?: AIOperationSource`

Which AI feature produced the processed data, stamped on the operations applying a computed change.

See [`aiSource`](module_ai_toolkit_documentcompare-DocumentCompareComputePatchOptions.md#member-aiSource).

<a id="member-isAtomic"></a>

### `isAtomic?: ( element: ModelElement, schema: ModelSchema ) => ( boolean | undefined )`

Whether all changes inside the given `element` should be treated as a one change. Called for every element if defined, before any other rules are applied. Return `true` or `false` to make a decision, or `undefined` to fall back to default rules.

Use this to register custom elements or to override default rules.

Atomic elements are for example tables (excluding layout tables) and elements without paragraph-like elements (e.g. an image with a caption).

---

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