Information on the Rich text editor settings
The global configuration of RichTextEditor will be removed in Umbraco 14 to support more rich text editors in the future. Instead, a new extension type called “tinyMcePlugin” will be added.
This settings section allows you to configure the behaviour of the rich text editor, everything from plugins to commands. Everything has a default value, so it's not required to configure any of this yourself.
Are you using custom configuration or plugins with TinyMCE?
In Umbraco 11 the TinyMCE version supported has been upgraded from version 4 to version 6. You need to migrate to the latest version if you are using TinyMCE plugins or custom configuration.
If your site is upgraded from an older version, follow the migration guides below to upgrade the TinyMCE version as well.
A config with all the values can be seen underneath. Since there are a lot of defaults configured, some of these have been omitted for the sake of readability. Anywhere something has been omitted it is shown with {...}
.
Allows you to specify what plugins should be enabled for the rich text editor as a comma seperated list of the plugin names.
To learn more about how to use the plugins, see the Rich Text Editor Plugins article.
Allows you to specify the valid HTML elements for the rich text editor as well as the allowed properties. For instance, in the config above the a
element is allowed, and it's allowed to have onclick
, href
, and many more attributes.
Specifies invalid HTML elements for the rich text editor. For instance, in the config above the font
element is not allowed.
Allows you to specify what commands should be available, as a list of object. These commands are the little buttons you find at the top of the editor, such as bold, italic, and so on.
When specifying these, every object should contain:
Alias - The alias of the command
Name - A friendly name descriping the command
Mode - The mode the command runs on
Insert - The command will insert something
Selection - The command operate on the text, or elements, selected
All - The command operates on everything
Allows you to specify custom key value pairs for the rich text editor.
Remove default <p>
tag.
Add custom styles to the Formats dropdown list in the Richtext Editor.
Use a text editor to find and replace \"
with "
. This will allow you to edit the JSON file in an easier-to-read format. Don't forget to add the \
back in when you are ready to paste the code back into your appsettings.json
file.
Allows you to specify a Cloud API key for the rich text editor. Set this if you want to use the TinyMCE Cloud service. After setting this the Backoffice automatically loads the plugins.js file from the cloud service, which is known as cloud deployment of plugins only.
To learn more about how to use the Cloud API key, see the Plugins article.
You can go to TinyMCE Cloud and sign up for a free trial. You will get a Cloud API key that you can use to try out the premium plugins.