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
Syncfusion<supstyle="font-size:70%">®</sup> React components come with [built-in themes](https://ej2.syncfusion.com/react/documentation/appearance/theme/), which are available in the installed packages. It’s easy to adapt the Syncfusion<supstyle="font-size:70%">®</sup> React components to match the style of your application by referring to one of the built-in themes.
107
+
Syncfusion<supstyle="font-size:70%">®</sup> React components come with [built-in themes](https://ej2.syncfusion.com/react/documentation/appearance/theme), which are available in the installed packages. It’s easy to adapt the Syncfusion<supstyle="font-size:70%">®</sup> React components to match the style of your application by referring to one of the built-in themes.
108
108
109
109
Import the `Material` theme into the **src/app/globals.css** file and removed the existing styles in that file, as shown below:
110
110
@@ -123,7 +123,7 @@ Import the `Material` theme into the **src/app/globals.css** file and removed th
123
123
{% endhighlight %}
124
124
{% endtabs %}
125
125
126
-
> To know more about built-in themes and CSS reference for individual components, refer to the [themes](https://ej2.syncfusion.com/react/documentation/appearance/theme/) section.
126
+
> To know more about built-in themes and CSS reference for individual components, refer to the [themes](https://ej2.syncfusion.com/react/documentation/appearance/theme) section.
The React Rich Text Editor component offers a powerful feature to format text as preformatted code blocks, making it ideal for displaying programming snippets or structured contents.
446
-
447
-
### Enabling code block formatting
448
-
449
-
To enable code block formatting, ensure that the Formats item is included in the toolbar items of your Rich Text Editor configuration.
450
-
451
-
Below are examples and code snippets demonstrating how to add and effectively use the code block formatting option in the Rich Text Editor.
452
-
453
-
`[Class-component]`
454
-
455
-
{% tabs %}
456
-
{% highlight js tabtitle="app.jsx" %}
457
-
{% include code-snippet/rich-text-editor/code-format-cs1/app/App.jsx %}
458
-
{% endhighlight %}
459
-
{% highlight ts tabtitle="app.tsx" %}
460
-
{% include code-snippet/rich-text-editor/code-format-cs1/app/App.tsx %}
This styling adds a light gray background, sets a monospace font, and includes padding and borders for better visual separation.
512
-
513
443
## Format painter
514
444
515
445
The format painter tool enables users to replicate formatting from one text segment and apply it to another. It can be accessed through the toolbar or keyboard shortcuts, allowing for the transfer of formatting styles from individual words to entire paragraphs. Customization options for the format painter are available through the [formatPainterSettings](../api/rich-text-editor/formatPainterSettings/) property.
0 commit comments