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: blazor/block-editor/built-in-blocks/embed.md
+91-2Lines changed: 91 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,15 @@ You can render an [Image](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazo
21
21
22
22
#### Global image settings
23
23
24
-
You can configure global settings for image blocks using the [BlockEditorImageBlock](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.BlockEditor.BlockEditorImageBlock.html) tag directive. This ensures consistent behavior for all images in the editor.
24
+
You can configure global settings for image blocks using the [BlockEditorImageBlock](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.BlockEditor.BlockEditorImageBlock.html) tag directive. This ensures consistent behavior for image uploads, resizing, and display.
25
25
26
26
The [BlockEditorImageBlock](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.BlockEditor.BlockEditorImageBlock.html) tag directive supports the following options:
27
27
28
28
| Property | Description | Default Value |
29
29
|----------|-------------|---------------|
30
+
| SaveUrl | Specifies the server endpoint URL for uploading images. When empty, server upload functionality is disabled. |`''`|
31
+
| MaxFileSize | Specifies the maximum file size allowed for image uploads in bytes. Files exceeding this size will be rejected during validation. |`30000000`|
32
+
| Path | Specifies the base path for storing and displaying images on the server. |`''`|
30
33
| SaveFormat | Specifies the format to save the image. |`Base64`|
To insert an image from your local machine, render the `Image` block. A popup will appear where you can browse and select an image to insert.
117
+
118
+
## Saving images to server
119
+
120
+
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.
To insert an image from an online source, render the `Image` block. Switch to the `Embed Link` tab containing an input field where you can provide the image URL from the web to insert the image.
166
+
167
+
79
168
## Image resizing
80
169
81
170
Block Editor has a built-in image inserting support. The resize points will be appearing on each corner of image when focus. So, users can resize the image using mouse points or thumb through the resize points easily. Also, the resize calculation will be done based on aspect ratio.
Copy file name to clipboardExpand all lines: blazor/block-editor/editor-menus.md
+86Lines changed: 86 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -367,6 +367,92 @@ The Inline Toolbar includes the following built-in formatting options:
367
367
-**Text Color**: Changes the color of the selected text.
368
368
-**Background Color**: Changes the background color of the selected text.
369
369
370
+
371
+
## Optional items
372
+
373
+
The inline toolbar can handle custom items like `Transform`, `InlineCode`, and `Link` by passing an array of string values in the `Items` property of `InlineToolbarSettings`.
374
+
375
+
### Transform block options
376
+
377
+
The inline toolbar now includes `transform` options to quickly convert blocks between different types. You can use the `TransformSettings` property to handle customization of the transform menu in the inline toolbar. This allows you to configure available block transformations, define custom menu items with text and icons.
378
+
379
+
### Built-in default transform block options
380
+
381
+
Below are the built-in transform block options available:
382
+
383
+
| Built-in transform Block Types |
384
+
|--------------------------------|
385
+
| Paragraph |
386
+
| Heading1 to Heading4 |
387
+
| Checklist |
388
+
| BulletList |
389
+
| NumberedList |
390
+
391
+
> For blocks such as `code`, `callout`, `quote`, `divider`, `image`, `table`, and `collapsible`, transform options are not available. Instead, they will be added as a new block.
392
+
393
+
### Events
394
+
395
+
The following events are available for the transform toolbar item menu:
396
+
397
+
| Name | Args | Description |
398
+
|------|------|-------------|
399
+
| ItemSelect | TransformItemSelectEventArgs | Triggers when a command item is clicked. |
400
+
401
+
### Inline code support
402
+
403
+
Added inline code formatting in the toolbar, with light syntax highlighting and seamless integration with other text formatting options.
404
+
405
+
### Inline link support
406
+
407
+
Added inline link formatting in the toolbar. By clicking the link item, a dialog opens and, after proper value input, the link can be inserted into the text.
408
+
409
+
The following example demonstrates how to customize the transform, inline code, and link items.
Use the [BlockEditorInlineToolbar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.BlockEditor.BlockEditorInlineToolbar.html) tag directive to customize the Inline Toolbar by adding or removing formatting options based on application needs.
Copy file name to clipboardExpand all lines: blazor/color-picker/getting-started-with-server-app.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ N> If the Interactivity Location is set to `Global`, the render mode is automati
168
168
169
169
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Blazor ColorPicker component in the default web browser.
Copy file name to clipboardExpand all lines: blazor/color-picker/getting-started-with-web-app.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ N> If the **Interactivity Location** is set to `Global` with `Auto` or `WebAssem
176
176
177
177
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This will render the Blazor ColorPicker component in the default web browser.
N> You can also explore our [Blazor ColorPicker example](https://blazor.syncfusion.com/demos/colorpicker/default-functionalities) that shows how to render and configure the ColorPicker.
Copy file name to clipboardExpand all lines: blazor/color-picker/getting-started.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ Add the Blazor Color Picker component in the **~/Pages/Index.razor** file.
157
157
158
158
* Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to launch the application. This renders the Blazor Color Picker component in the default web browser.
159
159
160
-
{% previewsample "https://blazorplayground.syncfusion.com/embed/LDrztMhkhMtJdbVL?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor Color Picker component](./images/blazor-colorpicker-component.webp)" %}
160
+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hjrHjdsEfhSURByW?appbar=false&editor=false&result=true&errorlist=false&theme=fluent2" backgroundimage "[Blazor Color Picker component](./images/blazor-colorpicker-component.webp)" %}
Copy file name to clipboardExpand all lines: blazor/color-picker/how-to/no-color-support.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
@@ -40,7 +40,7 @@ Enable the built-in no color tile by setting the [NoColor](https://help.syncfusi
40
40
</style>
41
41
42
42
```
43
-
{% previewsample "https://blazorplayground.syncfusion.com/embed/VDVUsLLGKoIFoxSv?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor ColorPicker with Default No Color](./../images/blazor-colorpicker-nocolor.webp)" %}
43
+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hNVnDHCkJAcgsVVU?appbar=false&editor=false&result=true&errorlist=false&theme=fluent2" backgroundimage "[Blazor ColorPicker with Default No Color](./../images/blazor-colorpicker-nocolor.webp)" %}
44
44
45
45
> If the [NoColor](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfColorPicker.html#Syncfusion_Blazor_Inputs_SfColorPicker_NoColor) property is enabled, make sure to disable the [ModeSwitcher](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfColorPicker.html#Syncfusion_Blazor_Inputs_SfColorPicker_ModeSwitcher) property.
46
46
@@ -128,4 +128,4 @@ The following example demonstrates a custom no color option alongside a palette
128
128
</style>
129
129
130
130
```
131
-
{% previewsample "https://blazorplayground.syncfusion.com/embed/VthAsLLwAyxsVKHl?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor ColorPicker with Custom No Color](./../images/blazor-colorpicker-custom-nocolor.webp)" %}
131
+
{% previewsample "https://blazorplayground.syncfusion.com/embed/hXBHDdCkfAwPuRgM?appbar=false&editor=false&result=true&errorlist=false&theme=fluent2" backgroundimage "[Blazor ColorPicker with Custom No Color](./../images/blazor-colorpicker-custom-nocolor.webp)" %}
N> To display the palette embedded in the page instead of in a popup, set `Inline="true"`. To render `Picker` alone, specify the [Mode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfColorPicker.html#Syncfusion_Blazor_Inputs_SfColorPicker_Mode) property as 'Picker'.
0 commit comments