ExpressionEngine® 3 User Guide

Legacy Documentation

You are using the documentation for version 3.5.17. Go here for the latest version or check here for your available upgrades to the latest version.

Rich Text Editor


ExpressionEngine’s built-in Rich Text Editor (RTE) is usually used inside the Control Panel. This module allows you to also use the RTE outside of the Control Panel, in your site’s front-end templates.

Its primary purpose is to output the URL of the RTE’s JavaScript and apply it to the desired elements (usually textareas) in your templates. For example, to load the RTE’s JavaScript via a template and apply it to all elements with the class “my-class”, you would place this inside your document’s head element:

<script type="text/javascript" src="{exp:rte:script_url selector=".my-class"}"></script>


If you’re using the Channel Form, it’s preferable to use the rte_selector= parameter instead of this module’s tag.




The versions of jQuery and jQuery UI that ship with ExpressionEngine are loaded by default since the RTE depends on them. If you are already loading these libraries separately, you may set this to “no”.



The jQuery selector that determines which element(s) the RTE will be applied to. Any valid jQuery selector is acceptable. If this parameter is not specified, it will default to “.rte”, selecting all elements having “rte” as a class.



The id of the toolset to use. If this parameter is not specified, the RTE will attempt to load the Toolset preference of the currently logged-in user as chosen in RTE tool set. If the user has not chosen a Toolset or is not logged in, the site’s Default Tool Sets will be used.