-
Notifications
You must be signed in to change notification settings - Fork 811
RTE: Custom CSS properties #7345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f4c6da4
804efb1
41cf79d
3b6806b
677d734
339942e
38da1a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Custom CSS properties | ||
|
|
||
| Customize the appearance of the Rich Text Editor with custom CSS properties. | ||
|
|
||
| You can customize appearance of the Rich Text Editor using CSS properties by defining them in your CSS files. | ||
|
|
||
| For example, to set minimum height of all Rich Text Editors throughout the backoffice. You could use the following CSS rule: | ||
|
|
||
| ```css | ||
| :root { | ||
| --umb-rte-min-height: 300px; | ||
| } | ||
| ``` | ||
|
|
||
| For general information on working with stylesheets and JavaScript in Umbraco, check [Stylesheets and JavaScript](../../../../design/stylesheets-javascript). | ||
|
Check warning on line 15 in 16/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/rich-text-editor/css-properties.md
|
||
|
|
||
| If you wanted to target a specific Rich Text Editor, you can set the [stylesheet directly in the configuration](configuration.md#stylesheets). | ||
|
|
||
|
|
||
| ## Custom CSS properties reference | ||
|
|
||
| The following CSS properties are available for customization: | ||
|
|
||
| | CSS Property | Description | Default Value | | ||
| | ---------------------- | ------------------------------------------ | ------------- | | ||
| | `--umb-rte-width` | The width of the rich-text-editor | `unset` | | ||
| | `--umb-rte-min-width` | The minimum width of the rich-text-editor | `unset` | | ||
| | `--umb-rte-max-width` | The maximum width of the rich-text-editor | `100%` | | ||
| | `--umb-rte-height` | The height of the rich-text-editor | `100%` | | ||
| | `--umb-rte-min-height` | The minimum height of the rich-text-editor | `100%` | | ||
| | `--umb-rte-max-height` | The maximum height of the rich-text-editor | `100%` | | ||
|
|
||
|
|
||
| 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/release-16.2.0/src/Umbraco.Web.UI.Client/src/packages/rte/components/rte-base.element.ts) in the Umbraco CMS GitHub repository. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.