diff --git a/ej2-asp-core-mvc/code-snippet/document-editor-container/toggle-track-pane/document-editor.cs b/ej2-asp-core-mvc/code-snippet/document-editor-container/toggle-track-pane/document-editor.cs
new file mode 100644
index 0000000000..cca48eedf9
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/document-editor-container/toggle-track-pane/document-editor.cs
@@ -0,0 +1,5 @@
+ public ActionResult Default()
+ {
+ return View();
+ }
+
diff --git a/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/document-editor.cs b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/document-editor.cs
new file mode 100644
index 0000000000..cca48eedf9
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/document-editor.cs
@@ -0,0 +1,5 @@
+ public ActionResult Default()
+ {
+ return View();
+ }
+
diff --git a/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/razor b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/razor
new file mode 100644
index 0000000000..33dcd7df80
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/razor
@@ -0,0 +1,13 @@
+
+ @Html.EJS().DocumentEditorContainer("container").documentChange("onDocChange").EnableToolbar(true).Render()
+
+
+
+
\ No newline at end of file
diff --git a/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/tagHelper b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/tagHelper
new file mode 100644
index 0000000000..98110a0409
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-default/tagHelper
@@ -0,0 +1,9 @@
+
+
diff --git a/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-only-protect/document-editor.cs b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-only-protect/document-editor.cs
new file mode 100644
index 0000000000..cca48eedf9
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes-only-protect/document-editor.cs
@@ -0,0 +1,5 @@
+ public ActionResult Default()
+ {
+ return View();
+ }
+
diff --git a/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes/document-editor.cs b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes/document-editor.cs
new file mode 100644
index 0000000000..cca48eedf9
--- /dev/null
+++ b/ej2-asp-core-mvc/code-snippet/document-editor-container/track-changes/document-editor.cs
@@ -0,0 +1,5 @@
+ public ActionResult Default()
+ {
+ return View();
+ }
+
diff --git a/ej2-asp-core-mvc/document-editor/track-changes.md b/ej2-asp-core-mvc/document-editor/track-changes.md
index 8baa3f5213..cd536ab510 100644
--- a/ej2-asp-core-mvc/document-editor/track-changes.md
+++ b/ej2-asp-core-mvc/document-editor/track-changes.md
@@ -23,7 +23,9 @@ The following example demonstrates how to enable track changes.
{% include code-snippet/document-editor-container/track-changes/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Track-changes-only.cs" %}
-{% endhighlight %}{% endtabs %}
+{% include code-snippet/document-editor-container/track-changes/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
{% elsif page.publishingplatform == "aspnet-mvc" %}
@@ -32,9 +34,35 @@ The following example demonstrates how to enable track changes.
{% include code-snippet/document-editor-container/track-changes/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Track-changes-only.cs" %}
-{% endhighlight %}{% endtabs %}
+{% include code-snippet/document-editor-container/track-changes/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
{% endif %}
+>Track changes are document level settings. When opening a document, if the document does not have track changes enabled, then enableTrackChanges will be disabled even if we set enableTrackChanges = true in the initial rendering. If you want to enable track changes for all the documents, then we recommend enabling track changes during the document change event. The following example demonstrates how to enable Track changes for the all the Document while Opening.
+
+{% if page.publishingplatform == "aspnet-core" %}
+
+{% tabs %}
+{% highlight cshtml tabtitle="CSHTML" %}
+{% include code-snippet/document-editor-container/track-changes-default/tagHelper %}
+{% endhighlight %}
+{% highlight c# tabtitle="Track-changes-default.cs" %}
+{% include code-snippet/document-editor-container/track-changes-default/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
+
+{% elsif page.publishingplatform == "aspnet-mvc" %}
+
+{% tabs %}
+{% highlight razor tabtitle="CSHTML" %}
+{% include code-snippet/document-editor-container/track-changes-default/razor %}
+{% endhighlight %}
+{% highlight c# tabtitle="Track-changes-default.cs" %}
+{% include code-snippet/document-editor-container/track-changes-default/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
+{% endif %}
## Show/Hide Revisions Pane
The Show/Hide Revisions Pane feature in the Document Editor allows users to toggle the visibility of the revisions pane, providing flexibility in managing tracked changes within the document.
@@ -48,7 +76,9 @@ The following example code illustrates how to show/hide the revisions pane.
{% include code-snippet/document-editor-container/toggle-track-pane/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Track-changes-only.cs" %}
-{% endhighlight %}{% endtabs %}
+{% include code-snippet/document-editor-container/toggle-track-pane/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
{% elsif page.publishingplatform == "aspnet-mvc" %}
@@ -57,7 +87,9 @@ The following example code illustrates how to show/hide the revisions pane.
{% include code-snippet/document-editor-container/toggle-track-pane/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Track-changes-only.cs" %}
-{% endhighlight %}{% endtabs %}
+{% include code-snippet/document-editor-container/toggle-track-pane/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
{% endif %}
## Get all tracked revisions
@@ -148,7 +180,9 @@ The following example code illustrates how to enforce and stop protection in Doc
{% include code-snippet/document-editor-container/track-changes-only-protect/tagHelper %}
{% endhighlight %}
{% highlight c# tabtitle="Track-changes-only.cs" %}
-{% endhighlight %}{% endtabs %}
+{% include code-snippet/document-editor-container/track-changes-only-protect/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
{% elsif page.publishingplatform == "aspnet-mvc" %}
@@ -157,7 +191,9 @@ The following example code illustrates how to enforce and stop protection in Doc
{% include code-snippet/document-editor-container/track-changes-only-protect/razor %}
{% endhighlight %}
{% highlight c# tabtitle="Track-changes-only.cs" %}
-{% endhighlight %}{% endtabs %}
+{% include code-snippet/document-editor-container/track-changes-only-protect/document-editor.cs %}
+{% endhighlight %}
+{% endtabs %}
{% endif %}
Tracked changes only protection can be enabled in UI by using [Restrict Editing pane](../document-editor/document-management#restrict-editing-pane/)