Textdirection

Easily change the direction of the text in a block tag (paragraph, header, blockquote etc.).

    Demo

    Click on any text block and the text direction change button will appear on the toolbar.

    Code

    <!DOCTYPE html>
    <html>
        <head>
            <title>Redactor X</title>
            <meta charset="utf-8">
    
            <!-- css -->
            <link rel="stylesheet" href="/your-folder/redactorx.css" />
        </head>
        <body>
            <!-- element -->
            <textarea id="entry">...</textarea>
    
            <!-- js -->
            <script src="/your-folder/redactorx.js"></script>
            <script src="/your-folder/plugins/textdirection.js"></script>
    
            <!-- call -->
            <script>
            RedactorX('#entry', {
                plugins: ['textdirection']
            });
            </script>
        </body>
    </html>