Redactor / Documentation / Settings

Lang

lang #

By default, Redactor is set to English language, but you can download (or create) and install your own language file. All you need is to set a language file URL in page header:

<!doctype html>
<html>
    <head>
        <title>Redactor</title>
        <meta charset="utf-8">

        <script src="/js/jquery-2.0.1.min.js"></script>

        <link rel="stylesheet" href="/js/redactor/redactor.css" />
        <script src="/js/redactor/redactor.js"></script>

        <script src="/js/redactor/es.js"></script>

        <script type="text/javascript">
        $(function()
        {
            $('#content').redactor({
                lang: 'es'
            });
        });
        </script>
    </head>
    <body>
        <textarea id="content" name="content"></textarea>
    </body>
</html>

direction #

Redactor supports both right-to-left and left-to-right text directions. By default, Redactor is set to work with left-to-right, to set it to right-to-left, use 'lang' setting:

$('#redactor').redactor({
    direction: 'rtl'
});