diff --git a/ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/blocks.md b/ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/blocks.md index 4fa7042478..ebd34491cf 100644 --- a/ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/blocks.md +++ b/ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/blocks.md @@ -179,6 +179,8 @@ You can render Image blocks by setting the [Type](https://help.syncfusion.com/cr {% endhighlight %} {% endtabs %} +![Image Block](images/block-image.png) + ### Adding template You can render Template blocks by setting the [Type](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.BlockType.html) property as `Template`. Template blocks enable you to use predefined content structures or custom templates. diff --git a/ej2-asp-core-mvc/block-editor/EJ2_ASP.NETCORE/blocks.md b/ej2-asp-core-mvc/block-editor/EJ2_ASP.NETCORE/blocks.md index 32593f9db4..48f3742734 100644 --- a/ej2-asp-core-mvc/block-editor/EJ2_ASP.NETCORE/blocks.md +++ b/ej2-asp-core-mvc/block-editor/EJ2_ASP.NETCORE/blocks.md @@ -179,6 +179,8 @@ You can render Image blocks by setting the [type](https://help.syncfusion.com/cr {% endhighlight %} {% endtabs %} +![Image Block](images/block-image.png) + ### Adding template You can render Template blocks by setting the [type](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.BlockEditor.BlockType.html) property as `Template`. Template blocks enable you to use predefined content structures or custom templates. diff --git a/ej2-asp-core-mvc/block-editor/images/block-image.png b/ej2-asp-core-mvc/block-editor/images/block-image.png new file mode 100644 index 0000000000..1da9ed9bb2 Binary files /dev/null and b/ej2-asp-core-mvc/block-editor/images/block-image.png differ diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/appearance/appearance.cs b/ej2-asp-core-mvc/code-snippet/block-editor/appearance/appearance.cs index f19e6d8496..f7cdcdc21e 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/appearance/appearance.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/appearance/appearance.cs @@ -6,9 +6,9 @@ public ActionResult Appearance() { BlocksData.Add(new Block { - id = "title-block", - type = "Heading1", - content = new List() + Id = "title-block", + Type = "Heading1", + Content = new List() { new { @@ -19,9 +19,9 @@ public ActionResult Appearance() }); BlocksData.Add(new Block { - id = "intro-block", - type = "Paragraph", - content = new List() + Id = "intro-block", + Type = "Paragraph", + Content = new List() { new { @@ -33,9 +33,9 @@ public ActionResult Appearance() }); BlocksData.Add(new Block { - id = "features-heading", - type = "Heading2", - content = new List() + Id = "features-heading", + Type = "Heading2", + Content = new List() { new { @@ -46,9 +46,9 @@ public ActionResult Appearance() }); BlocksData.Add(new Block { - id = "theme-list-1", - type = "BulletList", - content = new List() + Id = "theme-list-1", + Type = "BulletList", + Content = new List() { new { @@ -59,9 +59,9 @@ public ActionResult Appearance() }); BlocksData.Add(new Block { - id = "readonly-info", - type = "Paragraph", - content = new List() + Id = "readonly-info", + Type = "Paragraph", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/appearance/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/appearance/tagHelper index 01cefbca6e..03eeed476a 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/appearance/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/appearance/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/callout.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/callout.cs index f9f8ab5a3f..ff5ebcc086 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/callout.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/callout.cs @@ -5,14 +5,14 @@ public ActionResult Callout() { BlocksData.Add(new Block() { - type = "Callout", - children = new List() + Type = "Callout", + Children = new List() { new Block() { - id = "callout-content-1", - type = "Paragraph", - content = new List(){ + Id = "callout-content-1", + Type = "Paragraph", + Content = new List(){ new{ id = "callout-content-1", type = "Text", diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/tagHelper index 8bafe657b7..60b28f3f4d 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/callout-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/code.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/code.cs index 7a9c08f33a..738633748c 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/code.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/code.cs @@ -6,8 +6,8 @@ public ActionResult Code() { BlocksData.Add(new Block() { - type = "Code", - content = new List() + Type = "Code", + Content = new List() { new { @@ -15,27 +15,27 @@ public ActionResult Code() content = "function greeting() {\n console.log(\"Hello, world!\");\n}" } }, - codeSettings = new CodeSettingsModel() + CodeSettings = new { defaultLanguage = "javascript", - languages = new List() + languages = new List() { - new CodeLanguageModel() + new { label = "JavaScript", language = "javascript" }, - new CodeLanguageModel() + new { label = "TypeScript", language = "typescript" }, - new CodeLanguageModel() + new { label = "HTML", language = "html" }, - new CodeLanguageModel() + new { label = "CSS", language = "css" diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/tagHelper index 6fadae8a5f..93d55db21b 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/code-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/divider.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/divider.cs index 12b338e250..ac8a094124 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/divider.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/divider.cs @@ -6,8 +6,8 @@ public ActionResult Divider() { BlocksData.Add(new Block() { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -18,12 +18,12 @@ public ActionResult Divider() }); BlocksData.Add(new Block() { - type = "Divider" + Type = "Divider" }); BlocksData.Add(new Block() { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/tagHelper index 14f8c03066..35d8fec1f6 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/divider-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/heading.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/heading.cs index afb1c6a948..e713094c36 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/heading.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/heading.cs @@ -6,8 +6,8 @@ public ActionResult Heading() { BlocksData.Add(new Block { - type = "Heading1", - content = new List() + Type = "Heading1", + Content = new List() { new { @@ -18,8 +18,8 @@ public ActionResult Heading() }); BlocksData.Add(new Block { - type = "Heading2", - content = new List() + Type = "Heading2", + Content = new List() { new { @@ -30,8 +30,8 @@ public ActionResult Heading() }); BlocksData.Add(new Block { - type = "Heading3", - content = new List() + Type = "Heading3", + Content = new List() { new { @@ -42,8 +42,8 @@ public ActionResult Heading() }); BlocksData.Add(new Block { - type = "Heading4", - content = new List() + Type = "Heading4", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/tagHelper index 14f8c03066..35d8fec1f6 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/heading-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/image.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/image.cs index bcbaca5f12..db9c449f5c 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/image.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/image.cs @@ -6,8 +6,8 @@ public ActionResult Image() { BlocksData.Add(new Block { - type = "Image", - imageSettings = new ImageSettingsModel() + Type = "Image", + ImageSettings = new { src = "https://cdn.syncfusion.com/ej2/richtexteditor-resources/RTE-Overview.png", altText = "Sample image" @@ -15,8 +15,8 @@ public ActionResult Image() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/tagHelper index e55649223d..55e5e6b08f 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/image-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/list.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/list.cs index d52be3fdc8..00fec95469 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/list.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/list.cs @@ -6,8 +6,8 @@ public ActionResult List() { BlocksData.Add(new Block { - type = "BulletList", - content = new List() + Type = "BulletList", + Content = new List() { new { @@ -18,8 +18,8 @@ public ActionResult List() }); BlocksData.Add(new Block { - type = "NumberedList", - content = new List() + Type = "NumberedList", + Content = new List() { new { @@ -30,8 +30,8 @@ public ActionResult List() }); BlocksData.Add(new Block { - type = "CheckList", - content = new List() + Type = "CheckList", + Content = new List() { new { @@ -39,12 +39,12 @@ public ActionResult List() content = "Review documentation" } }, - isChecked = true + IsChecked = true }); BlocksData.Add(new Block { - type = "CheckList", - content = new List() + Type = "CheckList", + Content = new List() { new { @@ -52,7 +52,7 @@ public ActionResult List() content = "Implement drag and drop functionality" } }, - isChecked = false + IsChecked = false }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/tagHelper index 7bc53f719d..906573e08a 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/list-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/paragraph.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/paragraph.cs index bb81547ae5..76953671b7 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/paragraph.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/paragraph.cs @@ -6,8 +6,8 @@ public ActionResult Paragraph() { BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/tagHelper index 14f8c03066..35d8fec1f6 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/paragraph-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/quote.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/quote.cs index 8b3d8bff90..73654fdf91 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/quote.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/quote.cs @@ -6,8 +6,8 @@ public ActionResult Quote() { BlocksData.Add(new Block { - type = "Quote", - content = new List() + Type = "Quote", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/tagHelper index 14f8c03066..35d8fec1f6 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/quote-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/tagHelper index caa1d2b7df..bf587345d0 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/template.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/template.cs index 662cdd3294..68066374e7 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/template.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/template-block/template.cs @@ -6,8 +6,8 @@ public ActionResult Template() { BlocksData.Add(new Block { - type = "Template", - template = "
\r\n
\r\n 📢\r\n

Important Announcement

\r\n
\r\n
\r\n

The system will be undergoing maintenance on Saturday from 2:00 AM to 4:00 AM.

\r\n

Please save your work before this time to prevent any data loss.

\r\n
\r\n
" + Type = "Template", + Template = "
\r\n
\r\n 📢\r\n

Important Announcement

\r\n
\r\n
\r\n

The system will be undergoing maintenance on Saturday from 2:00 AM to 4:00 AM.

\r\n

Please save your work before this time to prevent any data loss.

\r\n
\r\n
" }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/tagHelper index 373262e724..d168dd8348 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/toggle.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/toggle.cs index 0db598f57d..1bc2a21a42 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/toggle.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/blockTypes/toggle-block/toggle.cs @@ -6,8 +6,8 @@ public ActionResult Toggle() { BlocksData.Add(new Block { - type = "ToggleHeading1", - content = new List() + Type = "ToggleHeading1", + Content = new List() { new { @@ -15,13 +15,13 @@ public ActionResult Toggle() content = "Collapsible Section" } }, - isExpanded = true, - children = new List() + IsExpanded = true, + Children = new List() { new Block() { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -34,8 +34,8 @@ public ActionResult Toggle() }); BlocksData.Add(new Block { - type = "ToggleParagraph", - content = new List() + Type = "ToggleParagraph", + Content = new List() { new { @@ -43,13 +43,13 @@ public ActionResult Toggle() content = "Toggle paragraph section" } }, - isExpanded = false, - children = new List() + IsExpanded = false, + Children = new List() { new Block() { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/children.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/children.cs index 6dd1bd215e..6fae514fa4 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/children.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/children.cs @@ -6,16 +6,16 @@ public ActionResult Children() { BlocksData.Add(new Block { - id = "security-callout", - type = "Callout", - children = new List() + Id = "security-callout", + Type = "Callout", + Children = new List() { new Block() { - id = "security-title", - parentId = "security-callout", - type = "Heading3", - content = new List() + Id = "security-title", + Parentid = "security-callout", + Type = "Heading3", + Content = new List() { new { @@ -28,10 +28,10 @@ public ActionResult Children() }); BlocksData.Add(new Block { - id = "security-warning", - parentId = "security-callout", - type = "Paragraph", - content = new List() + Id = "security-warning", + ParentId = "security-callout", + Type = "Paragraph", + Content = new List() { new { @@ -43,11 +43,11 @@ public ActionResult Children() }); BlocksData.Add(new Block { - id = "security-tips", - parentId = "security-callout", - type = "Paragraph", - indent = 1, - content = new List() + Id = "security-tips", + ParentId = "security-callout", + Type = "Paragraph", + Indent = 1, + Content = new List() { new { @@ -58,11 +58,11 @@ public ActionResult Children() }); BlocksData.Add(new Block { - id = "security-tips-2", - parentId = "security-callout", - type = "Paragraph", - indent = 1, - content = new List() + Id = "security-tips-2", + ParentId = "security-callout", + Type = "Paragraph", + Indent = 1, + Content = new List() { new { @@ -73,11 +73,11 @@ public ActionResult Children() }); BlocksData.Add(new Block { - id = "security-tips-3", - parentId = "security-callout", - type = "Paragraph", - indent = 1, - content = new List() + Id = "security-tips-3", + ParentId = "security-callout", + Type = "Paragraph", + Indent = 1, + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/tagHelper index 54f4199ae3..4635367f7e 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/children/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/cssclass.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/cssclass.cs index 2f1ba5348a..7c39f097dd 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/cssclass.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/cssclass.cs @@ -6,8 +6,8 @@ public ActionResult CssClass() { BlocksData.Add(new Block { - type = "Heading1", - content = new List() + Type = "Heading1", + Content = new List() { new { @@ -18,8 +18,8 @@ public ActionResult CssClass() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -29,8 +29,8 @@ public ActionResult CssClass() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -38,12 +38,12 @@ public ActionResult CssClass() content = "This is an info block" } }, - cssClass = "info-block" + CssClass = "info-block" }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -51,12 +51,12 @@ public ActionResult CssClass() content = "This is a warning block" } }, - cssClass = "warning-block" + CssClass = "warning-block" }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -64,12 +64,12 @@ public ActionResult CssClass() content = "This is a success block" } }, - cssClass = "success-block" + CssClass = "success-block" }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -77,12 +77,12 @@ public ActionResult CssClass() content = "This is an error block" } }, - cssClass = "error-block" + CssClass = "error-block" }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -90,7 +90,7 @@ public ActionResult CssClass() content = "This is a custom font block" } }, - cssClass = "custom-font" + CssClass = "custom-font" }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/tagHelper index 9a265b17aa..897aadc78d 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/cssClass/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/indent.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/indent.cs index c0cc4015b7..bacf725d11 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/indent.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/indent.cs @@ -6,20 +6,20 @@ public ActionResult Indent() { BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { content = "This is a paragraph with no indentation (indent: 0)" } }, - indent = 0 + Indent = 0 }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -27,12 +27,12 @@ public ActionResult Indent() content = "This paragraph has one level of indentation (indent: 1)" } }, - indent = 1 + Indent = 1 }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -40,12 +40,12 @@ public ActionResult Indent() content = "This paragraph has two levels of indentation (indent: 2)" } }, - indent = 2 + Indent = 2 }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -53,7 +53,7 @@ public ActionResult Indent() content = "Back to no indentation" } }, - indent = 0 + Indent = 0 }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/tagHelper index eb308547a3..32807f8690 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/indent/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/ischecked.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/ischecked.cs index 14fba2b88f..6c35e10f5c 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/ischecked.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/ischecked.cs @@ -6,8 +6,8 @@ public ActionResult IsChecked() { BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -17,8 +17,8 @@ public ActionResult IsChecked() }); BlocksData.Add(new Block { - type = "CheckList", - content = new List() + Type = "CheckList", + Content = new List() { new { @@ -26,12 +26,12 @@ public ActionResult IsChecked() content = "Completed task (checked)" } }, - isChecked = true + IsChecked = true }); BlocksData.Add(new Block { - type = "CheckList", - content = new List() + Type = "CheckList", + Content = new List() { new { @@ -39,12 +39,12 @@ public ActionResult IsChecked() content = "Pending task (unchecked)" } }, - isChecked = false + IsChecked = false }); BlocksData.Add(new Block { - type = "CheckList", - content = new List() + Type = "CheckList", + Content = new List() { new { @@ -52,12 +52,12 @@ public ActionResult IsChecked() content = "High priority task" } }, - isChecked = true + IsChecked = true }); BlocksData.Add(new Block { - type = "CheckList", - content = new List() + Type = "CheckList", + Content = new List() { new { @@ -65,7 +65,7 @@ public ActionResult IsChecked() content = "Low priority task" } }, - isChecked = false + IsChecked = false }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/tagHelper index 7bc53f719d..906573e08a 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/isChecked/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/label.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/label.cs index 97cbcdcd54..9aa379de25 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/label.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/label.cs @@ -8,8 +8,8 @@ public ActionResult Label() { BlocksData.Add(new Block { - type = "Heading1", - content = new List() + Type = "Heading1", + Content = new List() { new { @@ -20,8 +20,8 @@ public ActionResult Label() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -32,8 +32,8 @@ public ActionResult Label() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -59,8 +59,8 @@ public ActionResult Label() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -86,8 +86,8 @@ public ActionResult Label() }); BlocksData.Add(new Block { - type = "Paragraph", - content = new List() + Type = "Paragraph", + Content = new List() { new { @@ -111,58 +111,58 @@ public ActionResult Label() } } }); - labelItems = new List() + labelItems = new List() { - new LabelItemModel() + new { id = "bug", text = "Bug", labelColor = "#ff5252", groupHeader = "Status" }, - new LabelItemModel() + new { id = "task", text = "Task", labelColor = "#90caf9", groupHeader = "Status" }, - new LabelItemModel() + new { id = "feature", text = "Feature", labelColor = "#81c784", groupHeader = "Status" }, - new LabelItemModel() + new { id = "enhancement", text = "Enhancement", labelColor = "#ba68c8", groupHeader = "Status" }, - new LabelItemModel() + new { id = "low", text = "Low Priority", labelColor = "#c5e1a5", groupHeader = "Priority" }, - new LabelItemModel() + new { id = "medium", text = "Medium Priority", labelColor = "#fff59d", groupHeader = "Priority" }, - new LabelItemModel() + new { id = "high", text = "High Priority", labelColor = "#ffab91", groupHeader = "Priority" }, - new LabelItemModel() + new { id = "critical", text = "Critical", @@ -170,7 +170,7 @@ public ActionResult Label() groupHeader = "Priority" } }; - labelSettings = new LabelSettingsModel() + labelSettings = new object() { triggerChar = "#", labelItems = labelItems diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/tagHelper index 325c089327..5a5a3c31f8 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/label-settings/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/placeholder.cs b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/placeholder.cs index 7ac5e26b07..e0f301fdc8 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/placeholder.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/placeholder.cs @@ -5,8 +5,8 @@ public ActionResult Placeholder() { BlocksData.Add(new Block() { - type = "Paragraph", - content = new List(){ + Type = "Paragraph", + Content = new List(){ new{ type = "Text", content = "This is a sample paragraph block." @@ -14,8 +14,8 @@ public ActionResult Placeholder() } }); BlocksData.Add(new Block() { - type = "Paragraph", - content = new List(){ + Type = "Paragraph", + Content = new List(){ new{ type = "Text", placeholder = "Start typing your notes or press \"/\" for commands..." diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/tagHelper index 14f8c03066..35d8fec1f6 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/blocks/placeholder/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/dragdrop.cs b/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/dragdrop.cs index 734489c53b..19e3846536 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/dragdrop.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/dragdrop.cs @@ -5,9 +5,9 @@ public ActionResult DragDrop() { BlocksData.Add(new Block() { - id = "block-1", - type = "Heading1", - content = new List() + Id = "block-1", + Type = "Heading1", + Content = new List() { new{ type = "Text", @@ -16,9 +16,9 @@ public ActionResult DragDrop() } }); BlocksData.Add(new Block() { - id = "block-2", - type = "Paragraph", - content = new List() + Id = "block-2", + Type = "Paragraph", + Content = new List() { new { type = "Text", @@ -27,9 +27,9 @@ public ActionResult DragDrop() } }); BlocksData.Add(new Block() { - id = "block-3", - type = "BulletList", - content = new List() + Id = "block-3", + Type = "BulletList", + Content = new List() { new { type = "Text", @@ -38,9 +38,9 @@ public ActionResult DragDrop() } }); BlocksData.Add(new Block() { - id = "block-4", - type = "NumberedList", - content = new List() + Id = "block-4", + Type = "NumberedList", + Content = new List() { new { type = "Text", @@ -49,9 +49,9 @@ public ActionResult DragDrop() } }); BlocksData.Add(new Block() { - id = "block-5", - type = "NumberedList", - content = new List() + Id = "block-5", + Type = "NumberedList", + Content = new List() { new { type = "Text", diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/tagHelper index d3dc57374e..6f74970708 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/drag-drop/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/locale.cs b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/locale.cs index 6507f3eb56..884702c565 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/locale.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/locale.cs @@ -5,9 +5,9 @@ public ActionResult Locale() { BlocksData.Add(new Block() { - id = "block-1", - type = "Heading1", - content = new List() + Id = "block-1", + Type = "Heading1", + Content = new List() { new{ type = "Text", @@ -16,9 +16,9 @@ public ActionResult Locale() } }); BlocksData.Add(new Block() { - id = "block-2", - type = "Paragraph", - content = new List() + Id = "block-2", + Type = "Paragraph", + Content = new List() { new { type = "Text", @@ -28,8 +28,8 @@ public ActionResult Locale() }); BlocksData.Add(new Block() { - id = "block-3", - type = "Paragraph" + Id = "block-3", + Type = "Paragraph" }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/tagHelper index dce9588a60..0809ecf451 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/locale/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/rtl.cs b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/rtl.cs index ffa33621ae..87b2047639 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/rtl.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/rtl.cs @@ -5,9 +5,9 @@ public ActionResult Rtl() { BlocksData.Add(new Block() { - id = "block-1", - type = "Heading1", - content = new List() + Id = "block-1", + Type = "Heading1", + Content = new List() { new{ type = "Text", @@ -16,9 +16,9 @@ public ActionResult Rtl() } }); BlocksData.Add(new Block() { - id = "block-2", - type = "Paragraph", - content = new List() + Id = "block-2", + Type = "Paragraph", + Content = new List() { new { type = "Text", @@ -28,8 +28,8 @@ public ActionResult Rtl() }); BlocksData.Add(new Block() { - id = "block-3", - type = "Paragraph" + Id = "block-3", + Type = "Paragraph" }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/tagHelper index caa98022c8..336f6ed949 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/globalization/rtl/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/block.cs b/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/block.cs index 637e09d0a1..4c720a83ee 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/block.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/block.cs @@ -6,9 +6,9 @@ public ActionResult Block() { BlocksData.Add( new Block { - id = "block-1", - type = "Heading1", - content = new List() + Id = "block-1", + Type = "Heading1", + Content = new List() { new { @@ -19,9 +19,9 @@ public ActionResult Block() }); BlocksData.Add(new Block { - id = "block-2", - type = "Paragraph", - content = new List() + Id = "block-2", + Type = "Paragraph", + Content = new List() { new { @@ -32,9 +32,9 @@ public ActionResult Block() }); BlocksData.Add(new Block { - id = "block-3", - type = "Paragraph", - content = new List() + Id = "block-3", + Type = "Paragraph", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/tagHelper index a1b7392308..0e558a62ea 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/block/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/data.cs b/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/data.cs index 7f7ded9b1c..a9609365ef 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/data.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/data.cs @@ -6,9 +6,9 @@ public ActionResult Data() { BlocksData.Add(new Block { - id = "title-block", - type = "Heading1", - content = new List() + Id = "title-block", + Type = "Heading1", + Content = new List() { new { @@ -19,9 +19,9 @@ public ActionResult Data() }); BlocksData.Add(new Block { - id = "intro-paragraph", - type = "Paragraph", - content = new List() + Id = "intro-paragraph", + Type = "Paragraph", + Content = new List() { new { @@ -32,9 +32,9 @@ public ActionResult Data() }); BlocksData.Add(new Block { - id = "features-heading", - type = "Heading2", - content = new List() + Id = "features-heading", + Type = "Heading2", + Content = new List() { new { @@ -45,9 +45,9 @@ public ActionResult Data() }); BlocksData.Add(new Block { - id = "features-list", - type = "BulletList", - content = new List() + Id = "features-list", + Type = "BulletList", + Content = new List() { new { @@ -58,9 +58,9 @@ public ActionResult Data() }); BlocksData.Add(new Block { - id = "features-list-2", - type = "BulletList", - content = new List() + Id = "features-list-2", + Type = "BulletList", + Content = new List() { new { @@ -71,9 +71,9 @@ public ActionResult Data() }); BlocksData.Add(new Block { - id = "features-list-3", - type = "BulletList", - content = new List() + Id = "features-list-3", + Type = "BulletList", + Content = new List() { new { @@ -84,9 +84,9 @@ public ActionResult Data() }); BlocksData.Add(new Block { - id = "code-example", - type = "Code", - content = new List() + Id = "code-example", + Type = "Code", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/tagHelper index a2a28a5374..444422c1ee 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/data/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/formatting.cs b/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/formatting.cs index ca57ac3948..8f0e359935 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/formatting.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/formatting.cs @@ -6,9 +6,9 @@ public ActionResult Formatting() { BlocksData.Add(new Block { - id = "sample-heading", - type = "Heading1", - content = new List() + Id = "sample-heading", + Type = "Heading1", + Content = new List() { new { @@ -19,9 +19,9 @@ public ActionResult Formatting() }); BlocksData.Add(new Block { - id = "sample-paragraph-1", - type = "Paragraph", - content = new List() + Id = "sample-paragraph-1", + Type = "Paragraph", + Content = new List() { new { @@ -32,9 +32,9 @@ public ActionResult Formatting() }); BlocksData.Add(new Block { - id = "sample-list", - type = "BulletList", - content = new List() + Id = "sample-list", + Type = "BulletList", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/tagHelper index 3a67a48086..cf5a7e4c5b 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/formatting/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/selection.cs b/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/selection.cs index 67274a8b9c..c2e59db170 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/selection.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/selection.cs @@ -6,9 +6,9 @@ public ActionResult Selection() { BlocksData.Add(new Block { - id = "heading-block", - type = "Heading1", - content = new List() + Id = "heading-block", + Type = "Heading1", + Content = new List() { new { @@ -19,9 +19,9 @@ public ActionResult Selection() }); BlocksData.Add(new Block { - id = "paragraph-1", - type = "Paragraph", - content = new List() + Id = "paragraph-1", + Type = "Paragraph", + Content = new List() { new { @@ -33,9 +33,9 @@ public ActionResult Selection() }); BlocksData.Add(new Block { - id = "paragraph-2", - type = "Paragraph", - content = new List() + Id = "paragraph-2", + Type = "Paragraph", + Content = new List() { new { @@ -46,9 +46,9 @@ public ActionResult Selection() }); BlocksData.Add(new Block { - id = "list-block", - type = "BulletList", - content = new List() + Id = "list-block", + Type = "BulletList", + Content = new List() { new { diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/tagHelper index 27cc01c52d..0c8654a4e8 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/methods/selection/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/allowedstyle.cs b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/allowedstyle.cs index 82dba347f6..f1085e46f7 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/allowedstyle.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/allowedstyle.cs @@ -6,8 +6,8 @@ public ActionResult AllowedStyle() { BlocksData.Add(new Block() { - id = "demo-block", - type = "Paragraph" + Id = "demo-block", + Type = "Paragraph" }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/tagHelper index f58b4a00e7..31f5b9db78 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/allowedStyle/tagHelper @@ -19,7 +19,7 @@ Copy content from the test area above and paste it into the editor to see the cl @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/plaintext.cs b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/plaintext.cs index fdce709b36..d9e55a76b0 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/plaintext.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/plaintext.cs @@ -6,8 +6,8 @@ public ActionResult PlainText() { BlocksData.Add(new Block() { - id = "demo-block", - type = "Paragraph" + Id = "demo-block", + Type = "Paragraph" }); ViewBag.BlocksData = BlocksData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/tagHelper index 5aaf4b7aae..b983fc9cd3 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/paste-cleanup/plainText/tagHelper @@ -19,7 +19,7 @@ Copy content from the test area above and paste it into the editor to see the cl @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/tagHelper b/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/tagHelper index 9c61f02053..76921630ff 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/tagHelper @@ -5,7 +5,7 @@ @foreach (var block in ViewBag.BlocksData) { - + } diff --git a/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/undoredo.cs b/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/undoredo.cs index fff3b53b61..65852d73f1 100644 --- a/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/undoredo.cs +++ b/ej2-asp-core-mvc/code-snippet/block-editor/undo-redo/undoredo.cs @@ -5,9 +5,9 @@ public ActionResult UndoRedo() { BlocksData.Add(new Block() { - id = "block-1", - type = "Heading1", - content = new List() + Id = "block-1", + Type = "Heading1", + Content = new List() { new{ type = "Text", @@ -16,9 +16,9 @@ public ActionResult UndoRedo() } }); BlocksData.Add(new Block() { - id = "block-2", - type = "Paragraph", - content = new List() + Id = "block-2", + Type = "Paragraph", + Content = new List() { new { type = "Text", @@ -28,9 +28,9 @@ public ActionResult UndoRedo() }); BlocksData.Add(new Block() { - id = "block-3", - type = "Paragraph", - content = new List() + Id = "block-3", + Type = "Paragraph", + Content = new List() { new { type = "Text",