Text direction

This example shows how to change the text direction to right-to-left.

    Demo

    Code

    <!-- element -->
    <textarea id="content"></textarea>
    
    <!-- call -->
    <script>
    $R('#content', { direction: 'rtl' });
    </script>