Adding more functionalities to Umbraco Richtext Editor

One of the major default data types in Umbraco is the Richtext Editor. The TinyMCE based wysiwyg editor. This is the standard editor used to edit any larger amount of text. The editor has a lot of settings, which can be changed under the developer section in “data types” / Richtext editor.

The editor also supports TinyMCE plugins which can be controlled in the configuration file located at /config/tinyMce.config

If we want to add font color, font family and font size functions to the TinyMCE menu is to add the three snippets below to config/tinyMceConfig.config.

<!-- Font color selector tool -->
    <tinyMceCommand value="" userInterface="true" frontendCommand="forecolor">forecolor</tinyMceCommand>
<!-- Font family selector tool -->
    <tinyMceCommand value="" userInterface="true" frontendCommand="fontselect">fontselect</tinyMceCommand>
<!-- Font size selector tool -->
    <tinyMceCommand value="" userInterface="true" frontendCommand="fontsizeselect">fontsizeselect</tinyMceCommand>

After the above changes have been added to the tinyMceConfig.config file the new functions should be selectable in the datatype configuration.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s