Skip to content

Commit b198daf

Browse files
committed
968323: Addressed review comments.
1 parent d7a0713 commit b198daf

File tree

6 files changed

+64
-70
lines changed

6 files changed

+64
-70
lines changed

blazor/rich-text-editor/tools/audio.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,21 @@ N> The default `layoutOption` property is set to `Inline`.
195195

196196
## Drag and drop audio insertion
197197

198-
By default, the Rich Text Editor allows you to insert audios by drag-and-drop from the local file system such as Windows Explorer into the content editor area. And, you can upload the audios to the server before inserting into the editor by configuring the saveUrl property.
198+
Default upload: Insert audio directly from your local file system (e.g., File Explorer, Finder) into the editor.
199+
200+
Server upload: Use the `SaveUrl` property to upload audio files to your server before inserting them into the editor.
199201

200202
{% tabs %}
201203
{% highlight cshtml %}
202204

203-
{% include_relative code-snippet/audio-draganddrop.razor %}
205+
{% include_relative code-snippet/audio-drag-and-drop.razor %}
204206

205207
{% endhighlight %}
206208
{% endtabs %}
207209

208210
### Disabling audio drag and drop
209211

210-
You can prevent drag-and-drop action by setting the OnMediaDrop argument cancel value to true. The following code shows how to prevent the drag-and-drop.
212+
You can prevent drag-and-drop action by setting the `OnMediaDrop` argument cancel value to true. The following code shows how to prevent the drag-and-drop.
211213

212214
```
213215
<RichTextEditorEvents OnMediaDrop="@OnMediaDrop"></RichTextEditorEvents>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@using Syncfusion.Blazor.RichTextEditor;
2+
3+
<SfRichTextEditor>
4+
<RichTextEditorToolbarSettings Items="@Items" />
5+
<RichTextEditorAudioSettings SaveUrl="@saveUrl" Path="@path"></RichTextEditorAudioSettings>
6+
<p>
7+
The Rich Text Editor supports seamless audio insertion through drag-and-drop functionality. Users can quickly insert audio files into their content with a simple drag-and-drop action.
8+
</p>
9+
<p><b>Key features:</b></p>
10+
<ul>
11+
<li>Supports local upload: Drag audio files from your local system (e.g., File Explorer, Finder) and drop them
12+
directly into the editor.</li>
13+
<li>Supports server upload: Configure the <code>SaveUrl</code> property to upload audio files to your server
14+
before inserting them into the editor.</li>
15+
<li>Supports common audio formats such as MP3, WAV, and M4A ,WMA</li>
16+
<li>Fully customizable upload settings, including size limits and validation.</li>
17+
</ul>
18+
</SfRichTextEditor>
19+
@code {
20+
private string saveUrl = "https://blazor.syncfusion.com/services/production/api/RichTextEditor/SaveFile";
21+
private string path = "https://blazor.syncfusion.com/services/production/RichTextEditor/";
22+
private List<ToolbarItemModel> Items = new List<ToolbarItemModel>()
23+
{
24+
new ToolbarItemModel() { Command = ToolbarCommand.Audio }
25+
};
26+
}
27+

blazor/rich-text-editor/tools/code-snippet/audio-draganddrop.razor

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@using Syncfusion.Blazor.RichTextEditor;
2+
3+
<SfRichTextEditor>
4+
<RichTextEditorToolbarSettings Items="@Items" />
5+
<RichTextEditorVideoSettings SaveUrl="@saveUrl" Path="@path"></RichTextEditorVideoSettings>
6+
<p>
7+
The Rich Text Editor supports seamless video insertion through drag-and-drop functionality. Users can quickly insert video files into their content with a simple drag-and-drop action.
8+
</p>
9+
<p><b>Key features:</b></p>
10+
<ul>
11+
<li>Supports local upload: Drag video files from your local system (e.g., File Explorer, Finder) and drop them
12+
directly into the editor.</li>
13+
<li>Supports server upload: Configure the <code>SaveUrl</code> property to upload video files to your server
14+
before inserting them into the editor.</li>
15+
<li>Supports common video formats such as MP4, WMV, AVI and MOV</li>
16+
<li>Fully customizable upload settings, including size limits and validation.</li>
17+
</ul>
18+
</SfRichTextEditor>
19+
@code {
20+
private string saveUrl = "https://blazor.syncfusion.com/services/production/api/RichTextEditor/SaveFile";
21+
private string path = "https://blazor.syncfusion.com/services/production/RichTextEditor/";
22+
private List<ToolbarItemModel> Items = new List<ToolbarItemModel>()
23+
{
24+
new ToolbarItemModel() { Command = ToolbarCommand.Video }
25+
};
26+
}
27+

blazor/rich-text-editor/tools/code-snippet/video-draganddrop.razor

Lines changed: 0 additions & 32 deletions
This file was deleted.

blazor/rich-text-editor/tools/video.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,21 @@ N> The default `layoutOption` property is set to `Inline`.
217217

218218
## Drag and drop video insertion
219219

220-
By default, the Rich Text Editor allows you to insert videos by drag-and-drop from the local file system such as Windows Explorer into the content editor area. And, you can upload the videos to the server before inserting into the editor by configuring the saveUrl property.
220+
Default upload: Insert video directly from your local file system (e.g., File Explorer, Finder) into the editor.
221+
222+
Server upload: Use the `SaveUrl` property to upload video files to your server before inserting them into the editor.
221223

222224
{% tabs %}
223225
{% highlight cshtml %}
224226

225-
{% include_relative code-snippet/video-draganddrop.razor %}
227+
{% include_relative code-snippet/video-drag-and-drop.razor %}
226228

227229
{% endhighlight %}
228230
{% endtabs %}
229231

230232
### Disabling videos drag and drop
231233

232-
You can prevent drag-and-drop action by setting the OnMediaDrop argument cancel value to true. The following code shows how to prevent the drag-and-drop.
234+
You can prevent drag-and-drop action by setting the `OnMediaDrop` argument cancel value to true. The following code shows how to prevent the drag-and-drop.
233235

234236
```
235237
<RichTextEditorEvents OnMediaDrop="@OnMediaDrop"></RichTextEditorEvents>

0 commit comments

Comments
 (0)