Examples

Global options

    If you have several Redactors are running on the page, sometimes in addition to the specific options for each one, you need to set global options for all editors at once. It can be done through the $R.options object before initialization.

    Demo


    Code

    <!-- global options -->
    <script>
    $R.options = {
        buttonsTextLabeled: true
    };
    </script>
    
    <!-- elements -->
    <textarea class="content">...</textarea>
    <textarea class="content">...</textarea>
    
    <!-- call -->
    <script>
    $R('.content');
    </script>