Examples

Add sup and sub buttons

    This example shows how to add subscript and subscript buttons to the toolbar.

    Demo

    Code

    <!--element -->
    <textarea id="content"></textarea>
    
    <!-- call -->
    <script>
    $R('#content', {
        buttonsAddAfter: {
            after: 'deleted',
            buttons: ['sup', 'sub']
        }
    });
    </script>