From f2c6660dcff35cec6e8d2d5f03c80938806182dc Mon Sep 17 00:00:00 2001 From: SuriyaprakasamR Date: Fri, 4 Sep 2026 17:58:30 +0530 Subject: [PATCH 1/3] 1052601: Added UG content for the Comment Highlights features for ASP.NET Core, MVC and Blazor platforms. --- .../Word-Processor/asp-net-core/comments.md | 15 +++++++++++++ .../Word-Processor/asp-net-mvc/comments.md | 15 +++++++++++++ .../Word/Word-Processor/blazor/comments.md | 21 +++++++++++++++++++ .../comment-highlights/document-editor.cs | 5 +++++ .../comment-highlights/razor | 12 +++++++++++ .../comment-highlights/tagHelper | 13 ++++++++++++ .../comment-highlights/document-editor.cs | 5 +++++ .../comment-highlights/razor | 12 +++++++++++ .../comment-highlights/tagHelper | 13 ++++++++++++ 9 files changed, 111 insertions(+) create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/comments.md b/Document-Processing/Word/Word-Processor/asp-net-core/comments.md index a29718651d..d5409c359d 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/comments.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/comments.md @@ -157,6 +157,21 @@ The following example illustrates how to enable mention support in DOCX Editor {% endhighlight %} {% endtabs %} +## Highlight comments by author + +When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. +Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. + +The following example illustrates how to enable comment highlights in the DOCX Editor + +{% tabs %} +{% highlight cshtml tabtitle="CSHTML" %} +{% include code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper %} +{% endhighlight %} +{% highlight c# tabtitle="comment-highlights.cs" %} +{% include code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs %} +{% endhighlight %} +{% endtabs %} ## Events diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md index e41ceb6dcd..3ff2b69fad 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md @@ -159,6 +159,21 @@ The following example illustrates how to enable mention support in the DOCX Edit {% endhighlight %} {% endtabs %} +## Highlight comments by author + +When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. +Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. + +The following example illustrates how to enable comment highlights in the DOCX Editor + +{% tabs %} +{% highlight razor tabtitle="CSHTML" %} +{% include code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor %} +{% endhighlight %} +{% highlight c# tabtitle="comment-highlights.cs" %} +{% include code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs %} +{% endhighlight %} +{% endtabs %} ## Events diff --git a/Document-Processing/Word/Word-Processor/blazor/comments.md b/Document-Processing/Word/Word-Processor/blazor/comments.md index 5e150095cf..4548ee1f2b 100644 --- a/Document-Processing/Word/Word-Processor/blazor/comments.md +++ b/Document-Processing/Word/Word-Processor/blazor/comments.md @@ -47,6 +47,27 @@ You can delete all the comments in the document using [`DeleteAllCommentsAsync`] await container.DocumentEditor.Editor.DeleteAllCommentsAsync(); ``` +## Highlight comments by author + +When `HighlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. +Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. + +The following example illustrates how to enable comment highlights in the DOCX Editor + + +```csharp + +@using Syncfusion.Blazor.DocumentEditor; + + + + +@code { + SfDocumentEditorContainer container; + DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel() { HighlightCommentsByAuthor : true }; +} +``` + ## Protect the document in comments-only mode The DOCX Editor supports a special protection mode that restricts user actions to adding or editing comments only. When `CommentsOnly` protection is active, users cannot change the document content. diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs new file mode 100644 index 0000000000..048a3eb88c --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/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/comment-highlights/razor b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor new file mode 100644 index 0000000000..7b3f9a1c7b --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor @@ -0,0 +1,12 @@ +@Html.EJS().DocumentEditorContainer("container").Created("onCreated").EnableToolbar(true).Render() + + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper new file mode 100644 index 0000000000..61e34b2aa4 --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs new file mode 100644 index 0000000000..048a3eb88c --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/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/comment-highlights/razor b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor new file mode 100644 index 0000000000..7b3f9a1c7b --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor @@ -0,0 +1,12 @@ +@Html.EJS().DocumentEditorContainer("container").Created("onCreated").EnableToolbar(true).Render() + + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper new file mode 100644 index 0000000000..61e34b2aa4 --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper @@ -0,0 +1,13 @@ + + + + \ No newline at end of file From 8e00a64c4fde588eeede4622eae7951859d6fb72 Mon Sep 17 00:00:00 2001 From: SuriyaprakasamR Date: Fri, 4 Sep 2026 17:58:30 +0530 Subject: [PATCH 2/3] 1052601: Added UG content for the Comment Highlights features for ASP.NET Core, MVC and Blazor platforms. --- .../Word-Processor/asp-net-core/comments.md | 15 +++++++++++++ .../Word-Processor/asp-net-mvc/comments.md | 15 +++++++++++++ .../Word/Word-Processor/blazor/comments.md | 21 +++++++++++++++++++ .../comment-highlights/document-editor.cs | 5 +++++ .../comment-highlights/razor | 12 +++++++++++ .../comment-highlights/tagHelper | 13 ++++++++++++ .../comment-highlights/document-editor.cs | 5 +++++ .../comment-highlights/razor | 12 +++++++++++ .../comment-highlights/tagHelper | 13 ++++++++++++ 9 files changed, 111 insertions(+) create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor create mode 100644 Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/comments.md b/Document-Processing/Word/Word-Processor/asp-net-core/comments.md index a29718651d..d5409c359d 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/comments.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/comments.md @@ -157,6 +157,21 @@ The following example illustrates how to enable mention support in DOCX Editor {% endhighlight %} {% endtabs %} +## Highlight comments by author + +When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. +Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. + +The following example illustrates how to enable comment highlights in the DOCX Editor + +{% tabs %} +{% highlight cshtml tabtitle="CSHTML" %} +{% include code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper %} +{% endhighlight %} +{% highlight c# tabtitle="comment-highlights.cs" %} +{% include code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs %} +{% endhighlight %} +{% endtabs %} ## Events diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md index e41ceb6dcd..3ff2b69fad 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md @@ -159,6 +159,21 @@ The following example illustrates how to enable mention support in the DOCX Edit {% endhighlight %} {% endtabs %} +## Highlight comments by author + +When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. +Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. + +The following example illustrates how to enable comment highlights in the DOCX Editor + +{% tabs %} +{% highlight razor tabtitle="CSHTML" %} +{% include code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor %} +{% endhighlight %} +{% highlight c# tabtitle="comment-highlights.cs" %} +{% include code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs %} +{% endhighlight %} +{% endtabs %} ## Events diff --git a/Document-Processing/Word/Word-Processor/blazor/comments.md b/Document-Processing/Word/Word-Processor/blazor/comments.md index 5e150095cf..4548ee1f2b 100644 --- a/Document-Processing/Word/Word-Processor/blazor/comments.md +++ b/Document-Processing/Word/Word-Processor/blazor/comments.md @@ -47,6 +47,27 @@ You can delete all the comments in the document using [`DeleteAllCommentsAsync`] await container.DocumentEditor.Editor.DeleteAllCommentsAsync(); ``` +## Highlight comments by author + +When `HighlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. +Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. + +The following example illustrates how to enable comment highlights in the DOCX Editor + + +```csharp + +@using Syncfusion.Blazor.DocumentEditor; + + + + +@code { + SfDocumentEditorContainer container; + DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel() { HighlightCommentsByAuthor : true }; +} +``` + ## Protect the document in comments-only mode The DOCX Editor supports a special protection mode that restricts user actions to adding or editing comments only. When `CommentsOnly` protection is active, users cannot change the document content. diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/document-editor.cs new file mode 100644 index 0000000000..048a3eb88c --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/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/comment-highlights/razor b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor new file mode 100644 index 0000000000..7b3f9a1c7b --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor @@ -0,0 +1,12 @@ +@Html.EJS().DocumentEditorContainer("container").Created("onCreated").EnableToolbar(true).Render() + + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper new file mode 100644 index 0000000000..61e34b2aa4 --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/document-editor.cs new file mode 100644 index 0000000000..048a3eb88c --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/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/comment-highlights/razor b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor new file mode 100644 index 0000000000..7b3f9a1c7b --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor @@ -0,0 +1,12 @@ +@Html.EJS().DocumentEditorContainer("container").Created("onCreated").EnableToolbar(true).Render() + + \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper new file mode 100644 index 0000000000..61e34b2aa4 --- /dev/null +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper @@ -0,0 +1,13 @@ + + + + \ No newline at end of file From c971afa7f9c56e21b3ccba43a1c30ce91b5fa450 Mon Sep 17 00:00:00 2001 From: SuriyaprakasamR Date: Sun, 6 Sep 2026 18:45:47 +0530 Subject: [PATCH 3/3] 1052601: Modified with reviewed API for the comment-highlights settings. --- .../Word/Word-Processor/asp-net-core/comments.md | 3 +-- .../Word/Word-Processor/asp-net-mvc/comments.md | 3 +-- Document-Processing/Word/Word-Processor/blazor/comments.md | 5 ++--- .../document-editor-container/comment-highlights/razor | 2 +- .../document-editor-container/comment-highlights/tagHelper | 2 +- .../document-editor-container/comment-highlights/razor | 2 +- .../document-editor-container/comment-highlights/tagHelper | 2 +- 7 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Document-Processing/Word/Word-Processor/asp-net-core/comments.md b/Document-Processing/Word/Word-Processor/asp-net-core/comments.md index d5409c359d..da8ad26fa7 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-core/comments.md +++ b/Document-Processing/Word/Word-Processor/asp-net-core/comments.md @@ -159,8 +159,7 @@ The following example illustrates how to enable mention support in DOCX Editor ## Highlight comments by author -When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. -Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. +When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. The following example illustrates how to enable comment highlights in the DOCX Editor diff --git a/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md b/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md index 3ff2b69fad..2bac62837b 100644 --- a/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md +++ b/Document-Processing/Word/Word-Processor/asp-net-mvc/comments.md @@ -161,8 +161,7 @@ The following example illustrates how to enable mention support in the DOCX Edit ## Highlight comments by author -When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. -Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. +When `highlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. The following example illustrates how to enable comment highlights in the DOCX Editor diff --git a/Document-Processing/Word/Word-Processor/blazor/comments.md b/Document-Processing/Word/Word-Processor/blazor/comments.md index 4548ee1f2b..aabdf5b5e3 100644 --- a/Document-Processing/Word/Word-Processor/blazor/comments.md +++ b/Document-Processing/Word/Word-Processor/blazor/comments.md @@ -49,8 +49,7 @@ await container.DocumentEditor.Editor.DeleteAllCommentsAsync(); ## Highlight comments by author -When `HighlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. -Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. +When `HighlightCommentsByAuthor' is enabled, each comment marker and pane border is displayed in the author’s avatar color. Selecting a comment highlights the corresponding text in that color. If multiple comments appear on the same line, the marker retains the first author’s avatar color. The following example illustrates how to enable comment highlights in the DOCX Editor @@ -64,7 +63,7 @@ The following example illustrates how to enable comment highlights in the DOCX E @code { SfDocumentEditorContainer container; - DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel() { HighlightCommentsByAuthor : true }; + DocumentEditorSettingsModel settings = new DocumentEditorSettingsModel() { commentSettings: { highlightCommentsByAuthor : true } }; } ``` diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor index 7b3f9a1c7b..92a4a6e804 100644 --- a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/razor @@ -7,6 +7,6 @@ var documenteditorElement = document.getElementById('container'); container = documenteditorElement.ej2_instances[0]; documenteditor = container.documentEditor; - container.documentEditorSettings = { highlightCommentsByAuthor : true }; + container.documentEditorSettings = { commentSettings: { highlightCommentsByAuthor : true } }; } \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper index 61e34b2aa4..677ed9aa24 100644 --- a/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper +++ b/Document-Processing/code-snippet/document-editor/asp-net-core/document-editor-container/comment-highlights/tagHelper @@ -8,6 +8,6 @@ var documenteditorElement = document.getElementById('container'); container = documenteditorElement.ej2_instances[0]; documenteditor = container.documentEditor; - container.documentEditorSettings = { highlightCommentsByAuthor : true }; + container.documentEditorSettings = { commentSettings: { highlightCommentsByAuthor : true } }; } \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor index 7b3f9a1c7b..92a4a6e804 100644 --- a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/razor @@ -7,6 +7,6 @@ var documenteditorElement = document.getElementById('container'); container = documenteditorElement.ej2_instances[0]; documenteditor = container.documentEditor; - container.documentEditorSettings = { highlightCommentsByAuthor : true }; + container.documentEditorSettings = { commentSettings: { highlightCommentsByAuthor : true } }; } \ No newline at end of file diff --git a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper index 61e34b2aa4..677ed9aa24 100644 --- a/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper +++ b/Document-Processing/code-snippet/document-editor/asp-net-mvc/document-editor-container/comment-highlights/tagHelper @@ -8,6 +8,6 @@ var documenteditorElement = document.getElementById('container'); container = documenteditorElement.ej2_instances[0]; documenteditor = container.documentEditor; - container.documentEditorSettings = { highlightCommentsByAuthor : true }; + container.documentEditorSettings = { commentSettings: { highlightCommentsByAuthor : true } }; } \ No newline at end of file