From c568965715fbee9647296d775521876a2d6cf261 Mon Sep 17 00:00:00 2001 From: SuriyaprakasamR Date: Sun, 6 Sep 2026 20:10:36 +0530 Subject: [PATCH 1/2] 1052603: Document the custom colors feature for track changes --- .../asp-net-core/track-changes.md | 17 +++++++++++++++++ .../asp-net-mvc/track-changes.md | 18 ++++++++++++++++++ .../document-editor.cs | 5 +++++ .../track-changes-revision-colors/razor | 5 +++++ .../track-changes-revision-colors/tagHelper | 4 ++++ .../document-editor.cs | 5 +++++ .../track-changes-revision-colors/razor | 4 ++++ .../track-changes-revision-colors/tagHelper | 4 ++++ 8 files changed, 62 insertions(+) create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/document-editor.cs create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/razor create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/tagHelper create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/document-editor.cs create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/razor create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/tagHelper diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md b/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md index 460f4b1547..042060c9a8 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md @@ -123,6 +123,23 @@ container.documentEditor.selection.navigateNextRevision(); container.documentEditor.selection.navigatePreviousRevision(); ``` +## 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 + +{% tabs %} +{% highlight cshtml tabtitle="CSHTML" %} +{% include code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/tagHelper %} +{% endhighlight %} +{% highlight c# tabtitle="Track-changes-revision-colors.cs" %} +{% include code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/document-editor.cs %} +{% endhighlight %} +{% endtabs %} + ## Filtering changes based on user In DocumentEditor, we have built-in review panel in which we have provided support for filtering changes based on the user. diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md index 591d1c42d6..1cd4f19eb4 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md @@ -118,6 +118,24 @@ container.documentEditor.selection.navigateNextRevision(); container.documentEditor.selection.navigatePreviousRevision(); ``` +## 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 + +{% tabs %} +{% highlight razor tabtitle="CSHTML" %} +{% include code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/razor %} +{% endhighlight %} +{% highlight c# tabtitle="Track-changes-revision-colors.cs" %} +{% include code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/document-editor.cs %} +{% endhighlight %} +{% endtabs %} + + ## Filtering changes based on user The DOCX Editor has a built-in review panel that supports filtering changes by user. diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/document-editor.cs b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/document-editor.cs new file mode 100644 index 0000000000..cca48eedf9 --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/document-editor.cs @@ -0,0 +1,5 @@ + public ActionResult Default() + { + return View(); + } + diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/razor b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/razor new file mode 100644 index 0000000000..58c317b44b --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/razor @@ -0,0 +1,5 @@ +@Html.EJS().DocumentEditorContainer("container").EnableTrackChanges(true).DocumentEditorSettings("settings").Render() + + diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/tagHelper new file mode 100644 index 0000000000..0d6b26a23e --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/track-changes-revision-colors/tagHelper @@ -0,0 +1,4 @@ + + diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/document-editor.cs b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/document-editor.cs new file mode 100644 index 0000000000..cca48eedf9 --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/document-editor.cs @@ -0,0 +1,5 @@ + public ActionResult Default() + { + return View(); + } + diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/razor b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/razor new file mode 100644 index 0000000000..affe83e33c --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/razor @@ -0,0 +1,4 @@ +@Html.EJS().DocumentEditorContainer("container").EnableTrackChanges(true).DocumentEditorSettings("settings").Render() + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/tagHelper new file mode 100644 index 0000000000..0d6b26a23e --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/track-changes-revision-colors/tagHelper @@ -0,0 +1,4 @@ + + From dd9483d7c31905c5e533604ab61330d42d77f363 Mon Sep 17 00:00:00 2001 From: Vellaisamy Auvudaiappan Date: Mon, 7 Sep 2026 13:38:25 +0530 Subject: [PATCH 2/2] 1052603-changed to single line in track-changes.md file --- .../Word/Word-Processor/asp-net-core/track-changes.md | 4 +--- .../Word/Word-Processor/asp-net-mvc/track-changes.md | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md b/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md index 042060c9a8..5e94ba51ab 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md @@ -125,9 +125,7 @@ container.documentEditor.selection.navigatePreviousRevision(); ## 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. +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 diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md index 1cd4f19eb4..fa8b62be6c 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md @@ -120,9 +120,7 @@ container.documentEditor.selection.navigatePreviousRevision(); ## 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. +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