From 98a7028e94223393fc99734eee2f7f5a99c86cdd Mon Sep 17 00:00:00 2001 From: NiranjanAnumuthu21 Date: Tue, 22 Jul 2025 17:47:37 +0530 Subject: [PATCH 1/5] 857400: Added documentation for get styles --- ej2-asp-core-mvc/document-editor/styles.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ej2-asp-core-mvc/document-editor/styles.md b/ej2-asp-core-mvc/document-editor/styles.md index c47435895e..f61e212d11 100644 --- a/ej2-asp-core-mvc/document-editor/styles.md +++ b/ej2-asp-core-mvc/document-editor/styles.md @@ -155,3 +155,14 @@ documenteditor.editor.applyStyle('New Linked'); //Clear direct formatting and apply the specified style documenteditor.editor.applyStyle('New Linked', true); ``` + +## Get Styles + +You can get the styles in the document using the below code snippet. + +```typescript +//Get paragraph styles +let paragraphStyles = documentEditor.getStyles('Paragraph'); +//Get character styles +let paragraphStyles = documentEditor.getStyles('Character'); +``` From 5a2ef84387d09dd6f7433b52d4ca0938cc362f08 Mon Sep 17 00:00:00 2001 From: NiranjanAnumuthu21 Date: Tue, 29 Jul 2025 12:49:50 +0530 Subject: [PATCH 2/5] 857400: Changed the review changes in style --- ej2-asp-core-mvc/document-editor/styles.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ej2-asp-core-mvc/document-editor/styles.md b/ej2-asp-core-mvc/document-editor/styles.md index f61e212d11..c68006d5d0 100644 --- a/ej2-asp-core-mvc/document-editor/styles.md +++ b/ej2-asp-core-mvc/document-editor/styles.md @@ -1,6 +1,6 @@ --- layout: post -title: Styles in ##Platform_Name## Document Editor Component +title: Styles in ##Platform_Name## Document Editor Component | Syncfusion description: Learn here all about styles in Syncfusion ##Platform_Name## Document Editor component of Syncfusion Essential JS 2 and more. platform: ej2-asp-core-mvc control: Styles @@ -162,7 +162,7 @@ You can get the styles in the document using the below code snippet. ```typescript //Get paragraph styles -let paragraphStyles = documentEditor.getStyles('Paragraph'); +var paragraphStyles = documentEditor.getStyles('Paragraph'); //Get character styles -let paragraphStyles = documentEditor.getStyles('Character'); +var paragraphStyles = documentEditor.getStyles('Character'); ``` From c26c953649feee8e1551c7883bbce227776ca67b Mon Sep 17 00:00:00 2001 From: NiranjanAnumuthu21 Date: Tue, 29 Jul 2025 12:56:35 +0530 Subject: [PATCH 3/5] 857400: Resolved the CI issue From c55fcb86c5df85fc6280644cd1a9a39d13978f31 Mon Sep 17 00:00:00 2001 From: NiranjanAnumuthu21 Date: Tue, 29 Jul 2025 20:20:06 +0530 Subject: [PATCH 4/5] 857400: Resolved the CI failures in core --- ej2-asp-core-mvc/document-editor/styles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ej2-asp-core-mvc/document-editor/styles.md b/ej2-asp-core-mvc/document-editor/styles.md index c68006d5d0..729b22abab 100644 --- a/ej2-asp-core-mvc/document-editor/styles.md +++ b/ej2-asp-core-mvc/document-editor/styles.md @@ -164,5 +164,5 @@ You can get the styles in the document using the below code snippet. //Get paragraph styles var paragraphStyles = documentEditor.getStyles('Paragraph'); //Get character styles -var paragraphStyles = documentEditor.getStyles('Character'); +var characterStyles = documentEditor.getStyles('Character'); ``` From a40a1b1a00240925aa3532d98b5fc6c881339512 Mon Sep 17 00:00:00 2001 From: NiranjanAnumuthu21 Date: Wed, 30 Jul 2025 10:40:08 +0530 Subject: [PATCH 5/5] 857400: Resolved the CI failures in styles --- ej2-asp-core-mvc/document-editor/styles.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ej2-asp-core-mvc/document-editor/styles.md b/ej2-asp-core-mvc/document-editor/styles.md index 729b22abab..fd48345911 100644 --- a/ej2-asp-core-mvc/document-editor/styles.md +++ b/ej2-asp-core-mvc/document-editor/styles.md @@ -80,7 +80,8 @@ New Styles are defined and added to the style collection of the document. In thi {% include code-snippet/document-editor/character-style/tagHelper %} {% endhighlight %} {% highlight c# tabtitle="Character-style.cs" %} -{% endhighlight %}{% endtabs %} +{% endhighlight %} +{% endtabs %} {% elsif page.publishingplatform == "aspnet-mvc" %} @@ -89,7 +90,8 @@ New Styles are defined and added to the style collection of the document. In thi {% include code-snippet/document-editor/character-style/razor %} {% endhighlight %} {% highlight c# tabtitle="Character-style.cs" %} -{% endhighlight %}{% endtabs %} +{% endhighlight %} +{% endtabs %} {% endif %} @@ -103,7 +105,8 @@ New Styles are defined and added to the style collection of the document. In thi {% include code-snippet/document-editor/paragraph-style/tagHelper %} {% endhighlight %} {% highlight c# tabtitle="Paragraph-style.cs" %} -{% endhighlight %}{% endtabs %} +{% endhighlight %} +{% endtabs %} {% elsif page.publishingplatform == "aspnet-mvc" %} @@ -112,7 +115,8 @@ New Styles are defined and added to the style collection of the document. In thi {% include code-snippet/document-editor/paragraph-style/razor %} {% endhighlight %} {% highlight c# tabtitle="Paragraph-style.cs" %} -{% endhighlight %}{% endtabs %} +{% endhighlight %} +{% endtabs %} {% endif %} @@ -126,7 +130,8 @@ New Styles are defined and added to the style collection of the document. In thi {% include code-snippet/document-editor/linked-style/tagHelper %} {% endhighlight %} {% highlight c# tabtitle="Linked-style.cs" %} -{% endhighlight %}{% endtabs %} +{% endhighlight %} +{% endtabs %} {% elsif page.publishingplatform == "aspnet-mvc" %} @@ -135,7 +140,8 @@ New Styles are defined and added to the style collection of the document. In thi {% include code-snippet/document-editor/linked-style/razor %} {% endhighlight %} {% highlight c# tabtitle="Linked-style.cs" %} -{% endhighlight %}{% endtabs %} +{% endhighlight %} +{% endtabs %} {% endif %}