Redactor / Documentation / Settings


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>
        <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">
                lang: 'es'
        <textarea id="content" name="content"></textarea>

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:

    direction: 'rtl'