You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/appearance.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: post
3
3
title: Appearance in ##Platform_Name## Block Editor Control | Syncfusion
4
4
description: Checkout and learn about appearance with Syncfusion Essential ##Platform_Name## BlockEditor control, its elements, and more details.
5
5
platform: ej2-asp-core-mvc
6
-
control: Block Editor
6
+
control: BlockEditor
7
7
publishingplatform: ##Platform_Name##
8
8
documentation: ug
9
9
---
@@ -31,7 +31,7 @@ You can specify the width and height for the Block Editor control using the [Wid
31
31
32
32
## Setting readonly mode
33
33
34
-
You can utilize the [Readonly](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.BlockEditor.html#Syncfusion_EJ2_BlockEditor_BlockEditor_ReadOnly) property to control whether the editor is in read-only mode. When set to `true`, users cannot edit the content but can still view it.
34
+
You can utilize the [ReadOnly](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.BlockEditor.html#Syncfusion_EJ2_BlockEditor_BlockEditor_ReadOnly) property to control whether the editor is in read-only mode. When set to `true`, users cannot edit the content but can still view it.
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/built-in-blocks/built-in-blocks.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: post
3
3
title: Blocks in ##Platform_Name## Block Editor control | Syncfusion
4
4
description: Checkout and learn about Blocks with ##Platform_Name## Block Editor control of Syncfusion Essential JS 2 and more.
5
5
platform: ej2-asp-core-mvc
6
-
control: Block Editor
6
+
control: BlockEditor
7
7
publishingplatform: ##Platform_Name##
8
8
documentation: ug
9
9
domainurl: ##DomainURL##
@@ -15,9 +15,9 @@ The Block Editor control enables you to create block-based content editing solut
15
15
16
16
## Blocks
17
17
18
-
Blocks are the fundamental building elements of the Block Editor. Each block represents a distinct content unit such as a `paragraph`, `heading`, `list`, or specialized content like `code snippets` or `images`. The Block Editor organizes content as a collection of `blocks`, allowing for better structure and formatting options.
18
+
Blocks are the fundamental building elements of the Block Editor. Each block represents a distinct content unit such as a `Paragraph`, `Heading`, `List`, or specialized content like `Code Snippets` or `Images`. The Block Editor organizes content as a collection of `blocks`, allowing for better structure and formatting options.
19
19
20
-
You can configure blocks with various properties such as [Id](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Id), [Type](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Type), [Content](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Content), [Children](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Children)and more to create rich, structured editor.
20
+
You can configure blocks with various properties such as `id`, `blockType`, `content`and more to create rich and structured editor.
21
21
22
22
## Block types
23
23
@@ -40,9 +40,9 @@ The Block Editor supports multiple block types. Each block type offers different
40
40
41
41
## Configure indent
42
42
43
-
You can specify the indentation level of a block using the [Indent](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Indent) property. This property accepts a numeric value that determines how deeply a block is nested from the left margin.
43
+
You can specify the indentation level of a block using the `indent` property. This property accepts a numeric value that determines how deeply a block is nested from the left margin.
44
44
45
-
By default, the [Indent](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Indent) property is set to `0`.
45
+
By default, the `indent` property is set to `0`.
46
46
47
47
{% tabs %}
48
48
{% highlight razor tabtitle="CSHTML" %}
@@ -57,7 +57,7 @@ By default, the [Indent](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion
57
57
58
58
## Configure CSS Class
59
59
60
-
You can apply custom styling to individual blocks using the [CssClass](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_CssClass) property. This property accepts a string containing one or more CSS class names.
60
+
You can apply custom styling to individual blocks using the `cssClass` property. This property accepts a string containing one or more CSS class names.
61
61
62
62
Custom CSS classes allow you to define specialized styling for specific blocks in your editor.
63
63
@@ -74,7 +74,7 @@ Custom CSS classes allow you to define specialized styling for specific blocks i
74
74
75
75
## Configure templates
76
76
77
-
The Block Editor allows you to use custom templates for specialized content using the [Template](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html#Syncfusion_EJ2_BlockEditor_Block_Template) property. Templates can be defined as strings, functions, or HTML elements.
77
+
The Block Editor allows you to use custom templates for specialized content using the `template` property. Templates can be defined as strings, functions, or HTML elements.
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/built-in-blocks/code-block.md
+16-39Lines changed: 16 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,63 +3,40 @@ layout: post
3
3
title: Code Block in ##Platform_Name## Block Editor control | Syncfusion
4
4
description: Checkout and learn about Code Block with ##Platform_Name## Block Editor control of Syncfusion Essential JS 2 and more.
5
5
platform: ej2-asp-core-mvc
6
-
control: Block Editor
6
+
control: BlockEditor
7
7
publishingplatform: ##Platform_Name##
8
8
documentation: ug
9
9
domainurl: ##DomainURL##
10
10
---
11
11
12
12
# Code Blocks in ##Platform_Name## Block Editor control
13
13
14
-
You can render Code blocks by setting the [Type](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.BlockType.html) property as `Code`. By setting the `Props` property, you can configure the languages available for syntax highlighting and the default language. The default language is `javascript`.
14
+
You can render Code blocks by setting the `blockType` property as `Code`. By setting the `properties` property, you can configure the default language. The default language is `plainText`.
15
15
16
-
## Configure code properties
16
+
## Global Code Settings
17
17
18
-
For Code blocks, you can configure syntax highlighting and language options using the [Props](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html) property.
18
+
You can configure global settings for code blocks using the `CodeBlockSettings` property in the Block Editor root configuration. This ensures consistent behavior for syntax highlighting and language options across all code blocks.
19
19
20
-
The code [Props](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html) property supports the following options:
20
+
The `CodeBlockSettings` property supports the following options:
21
21
22
22
| Property | Description | Default Value |
23
23
|----------|-------------|---------------|
24
-
| languages |Array of language options for syntax highlighting |[]|
25
-
| defaultLanguage |The default language to use for syntax highlighting | 'javascript' |
24
+
|[languages](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.CodeBlockSettingsModel.html#Syncfusion_EJ2_BlockEditor_CodeBlockSettingsModel_Languages)|Specifies the array of language options for syntax highlighting.|[]|
25
+
|[defaultLanguage](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.CodeBlockSettingsModel.html#Syncfusion_EJ2_BlockEditor_CodeBlockSettingsModel_DefaultLanguage)|Defines the default language to use for syntax highlighting.| 'plaintext' |
26
26
27
27
Each language object in the `languages` array should have:
28
28
-`language`: The language value used for syntax highlighting
29
29
-`label`: The display name shown in the language selector
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/block-editor/EJ2_ASP.MVC/built-in-blocks/embed.md
+29-42Lines changed: 29 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: post
3
3
title: Embed Blocks in ##Platform_Name## Block Editor control | Syncfusion
4
4
description: Checkout and learn about Embed Blocks with ##Platform_Name## Block Editor control of Syncfusion Essential JS 2 and more.
5
5
platform: ej2-javascript
6
-
control: Block Editor
6
+
control: BlockEditor
7
7
publishingplatform: ##Platform_Name##
8
8
documentation: ug
9
9
domainurl: ##DomainURL##
@@ -15,53 +15,40 @@ Block Editor supports addition of embeds to help you organize, showcase contents
15
15
16
16
## Image Block
17
17
18
-
You can use the `image` block to showcase an image content within your editor.
18
+
You can use the `Image` block to showcase an image content within your editor.
19
19
20
-
### Configure image block
20
+
### Configure Image Block
21
21
22
-
You can render Image blocks by setting the [Type](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.BlockType.html) property as`Image`. By setting the `Props` property, you can configure the image source, allowed file types, and display dimensions etc.
22
+
You can render an `Image` block by setting the `blockType` property to`Image` in the block model. The `properties` property allows you to configure the image source, allowed file types, display dimensions, and more.
23
23
24
-
The image [Props](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.BlockEditor.Block.html) property supports the following options:
24
+
#### Global Image Settings
25
+
26
+
You can configure global settings for image blocks using the `ImageBlockSettings` property in the Block Editor root configuration. This ensures consistent behavior for image uploads, resizing, and display.
27
+
28
+
The `ImageBlockSettings` property supports the following options:
29
+
30
+
| Property | Description | Default Value |
31
+
|----------|-------------|---------------|
32
+
| saveFormat | Specifies the format to save the image. |`Base64`|
0 commit comments