---
title: "Review citation changes"
description: "Review changes to cited text or sources and choose which edits need approval."
canonical_url: "https://tiptap.dev/docs/citations/guides/review"
---

# Review citation changes

Review changes to cited text or sources and choose which edits need approval.

Each citation saves the text and source revision at creation or last approval. Its status is `valid` when it has no invalid reasons. Users decide whether the source supports the passage.

## Try text review

Edit a word or number in the demo, then open the citation to see what changed. Choose **Approve** to keep the edit or **Restore original text** to bring back the confirmed text.

> **Interactive demo:** [React](https://embed-pro.tiptap.dev/preview/Extensions/SmartCitationsReview/React)

## Review reasons

| Invalid reason  | Meaning                                                                                                                                                                      |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `textChanged`   | Inline cited text differs from the confirmed text and the [text review rule](https://tiptap.dev/docs/citations/api-reference/extension.md#text-review-rule) requires review. |
| `sourceChanged` | The current source revision differs from the confirmed revision.                                                                                                             |
| `sourceMissing` | The source ID is absent from the local collection.                                                                                                                           |

A citation can have multiple reasons. Each clears when its condition clears.

## Customize text review

The default rule trims the text and treats each run of spaces, tabs, or line breaks as one space. An extra space between words needs no review. Joining or splitting words or numbers changes the text and adds `textChanged`. For example, changing `8 9` to `89` needs review.

Use `shouldReviewCitation` to change that rule. This example requires an exact match for the source with ID `statute`. For other sources, it also ignores capitalization. Add the callback to your [existing Smart Citations configuration](https://tiptap.dev/docs/citations/getting-started/install.md).

```ts
import { SmartCitations, defaultShouldReviewCitation } from '@tiptap-pro/extension-smart-citations'

const citations = SmartCitations.configure({
  sources,
  user: { id: 'author' },
  shouldReviewCitation: ({ text, confirmedText, citation }) => {
    if (citation.sourceId === 'statute') return text !== confirmedText
    return defaultShouldReviewCitation({
      text: text.toLowerCase(),
      confirmedText: confirmedText.toLowerCase(),
    })
  },
})
```

## Text selections, overlaps, and restoration

- **Creation.** Select nonempty text within one textblock. Formatted text works wherever the schema allows citation marks. A text selection cannot include non-text inline nodes. To cite a whole node, use a [node citation](https://tiptap.dev/docs/citations/guides/cite-nodes.md).
- **Overlaps.** Citations can overlap or cover identical ranges, even for the same source. Deleting all cited text removes its citation.
- **Restoration.** Restoring text preserves uncited gaps and uses current formatting. The confirmed source revision stays the same. Across textblocks, only approval and removal work.

Hard breaks between cited ranges can act as separators for review. If a hard break replaces the space in `8 9`, the citation stays valid under the default rule. Once you approve the break, deleting it joins the numbers and adds `textChanged`. Restoring a later text edit preserves an existing break. To fix a change to hard breaks alone, edit the breaks directly.

Use the [review commands](https://tiptap.dev/docs/citations/api-reference/commands.md) to approve, restore, or remove a citation.
