Skip to content

Commit aeb97e6

Browse files
Merge branch 'development' into 1025274-Staging
2 parents 9a53a50 + de65be5 commit aeb97e6

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

  • blazor/block-editor/built-in-blocks

blazor/block-editor/built-in-blocks/embed.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ The [Image](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.BlockEditor.
5555

5656
The following example demonstrates how to configure an `Image` block.
5757

58-
```razor
58+
{% tabs %}
59+
{% highlight razor tabtitle="razor" %}
60+
5961
@using Syncfusion.Blazor.BlockEditor
6062

6163
<SfBlockEditor Blocks="BlockData"></SfBlockEditor>
@@ -76,7 +78,10 @@ The following example demonstrates how to configure an `Image` block.
7678
}
7779
};
7880
}
79-
```
81+
82+
{% endhighlight %}
83+
{% endtabs %}
84+
8085
This sample demonstrates the configuration of the `Image` block in the Block Editor.
8186
```cshtml
8287
@@ -114,11 +119,15 @@ To insert an image from your local machine, render the `Image` block. A popup wi
114119

115120
Upload the selected image to a server endpoint using the `SaveUrl` property. Use the `Path` property to specify the storage location and `SaveFormat` to define whether the image is saved as Blob or Base64.
116121

117-
```razor
122+
{% tabs %}
123+
{% highlight razor tabtitle="razor" %}
124+
118125
<SfBlockEditor Blocks="BlockData">
119126
<BlockEditorImageBlock SaveUrl="/api/upload" Path="/images/uploads" SaveFormat="SaveFormat.Blob" />
120127
</SfBlockEditor>
121-
```
128+
129+
{% endhighlight %}
130+
{% endtabs %}
122131

123132
## Image upload controller sample
124133

0 commit comments

Comments
 (0)