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: 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/rich-text-editor/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,10 @@ Use Blocks to define specific parts that can be added as part of the markup of t
28
28
29
29
Extend the functionality of the Rich Text Editor with extensions.
30
30
31
+
## [Custom CSS properties](css-properties.md)
32
+
33
+
Customize the appearance of the Rich Text Editor with custom CSS properties.
34
+
31
35
## Data Type Definition Example
32
36
33
37

Customize the appearance of the Rich Text Editor with custom CSS properties.
4
+
5
+
You can customize the appearance of the Rich Text Editor using CSS properties by defining them in your CSS files.
6
+
7
+
For example, to set the minimum height of all Rich Text Editors throughout the backoffice. You could use the following CSS rule:
8
+
9
+
```css
10
+
:root {
11
+
--umb-rte-min-height: 300px;
12
+
}
13
+
```
14
+
15
+
For general information on working with stylesheets and JavaScript in Umbraco, check [Stylesheets and JavaScript](../../../../design/stylesheets-javascript.md).
16
+
17
+
If you wanted to target a specific Rich Text Editor, you can set the [stylesheet directly in the configuration](configuration.md#stylesheets).
18
+
19
+
20
+
## Custom CSS properties reference
21
+
22
+
The following CSS properties are available for customization:
|`--umb-rte-width`| The width of the rich-text-editor |`unset`|
27
+
|`--umb-rte-min-width`| The minimum width of the rich-text-editor |`unset`|
28
+
|`--umb-rte-max-width`| The maximum width of the rich-text-editor |`100%`|
29
+
|`--umb-rte-height`| The height of the rich-text-editor |`100%`|
30
+
|`--umb-rte-min-height`| The minimum height of the rich-text-editor |`100%`|
31
+
|`--umb-rte-max-height`| The maximum height of the rich-text-editor |`100%`|
32
+
33
+
34
+
The CSS custom properties may change in future versions of Umbraco. You can always find the latest values in the [Rich Text Editor component base class](https://github.com/umbraco/Umbraco-CMS/blob/main/src/Umbraco.Web.UI.Client/src/packages/rte/components/rte-base.element.ts) in the Umbraco CMS GitHub repository.
0 commit comments