Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Document-Processing/Word/Word-Processor/react/track-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,17 @@ createRoot(document.getElementById('sample')).render(<App />);
{% endhighlight %}
{% endtabs %}

## Custom Colors for Track Changes

You can set an array of colors to show track changes such as insertions and deletions in the DOCX editor. Each author is assigned a color in order: the first author gets the first color, the second author gets the next, and so on. If there are more authors than colors, the assignment starts again from the beginning of the array.

The following example illustrates how to set the color order for track changes in the DOCX Editor

```typescript
let container = useRef<DocumentEditorContainerComponent>(null);
container.documentEditorSettings.revisionSettings.revisionColors = [ '#0e76b1', '#bb00ff', '#c14f16'];
```

## Filter Changes by User

The built-in review panel in the DOCX Editor supports filtering changes based on the user.
Expand All @@ -319,4 +330,4 @@ Explore how to track and review changes in Word documents using the React DOCX E

To learn more about Track Changes in the DOCX Editor component, refer to the video below.

{% youtube "https://www.youtube.com/watch?v=Ke27Mip4bN0" %}
{% youtube "https://www.youtube.com/watch?v=Ke27Mip4bN0" %}