Text Alignment

Align text left, center or right

This plugin applies a specific class to selected text, allowing developers to tweak alignment precisely.

Download Plugin

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

        <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js"></script>

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

        <!-- Plugin -->
        <link rel="stylesheet" href="/js/redactor/plugins/alignment/alignment.css" />
        <script src="/js/redactor/plugins/alignment/alignment.js"></script>

        <script type="text/javascript">
        $(function()
        {
            $('#redactor').redactor({
                plugins: ['alignment']
            });
        });
        </script>
    </head>
    <body>
        <textarea id="redactor">...</textarea>
    </body>
</html>