Rich Text Editor Styles
It is possible to define specific styles and fonts for the Rich Text Editor (RTE). Once you've defined the styles, and enabled them on the RTE Data Type, the styles can be accessed directly in the content section.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-a2b8de806feb29cc15d965fd417efa2d861a7adc%252Frte-Formats.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=af11d9fc&sv=1)
Creating RTE Styles
The RTE styles are created and managed in the Umbraco backoffice.
Find the Stylesheets folder in the Settings section. Right-click the folder, select 'Create...' and choose New Rich Text Editor style sheet file. Give the new stylesheet a name and Save it - this will generate an empty CSS file.
At this point, you can start adding specific styles, that your editors can then use in the content section when creating and writing new content.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-5d5ca865fdd998e5616243603f38fab92b4d19b6%252Frte-create-style.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=a0e88e60&sv=1)
The image above is an example of how an RTE style can be configured. When working with these styles, the Preview feature will show you how the style will look when applied.
Every style you add, will automatically be added to the CSS file. The file will be placed in the same location as the rest of your CSS files. It's possible to edit the file directly from the backoffice as well. Access it from the Code tab in the top-right corner.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-767739a3f3190cc721883bc0add6ef75bafc30b0%252Frte-code-tab.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=40569065&sv=1)
Using RTE Styles
In order for your editors to be able to use the styles when working with content, two things needs to be done.
1. Enable "Style select"
The styles will be accessed by the editors using the "Formats" dropdown in the toolbar of the RTE. In order the enable the dropdown, the "Style select" toolbar option needs to be checked.
This can be done through the Content section using infinite editing, or by finding and editing the RTE Data Type in the Settings section of the backoffice. Learn more about the configuration options in the RTE Config article.
2. Select the styles
You can have as many different styles for your RTEs as you want. You might want to have different styles for different RTE Data Types.
When configuring your RTE Data Types, you can select which stylesheets your content editors should be able to use.
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-8452a57a36bbf3258f3118165b82f73e052b3a4a%252Frte-choose-stylesheet.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4078cb9b&sv=1)
Last updated