Text direction

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

Code

<!-- element -->
<textarea id="content"></textarea>

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