Tab using spaces

This example shows how to set up tab key to use spaces instead of tabulation.

Code

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

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