Text Direction

Empowers users to effortlessly switch text direction between right-to-left and left-to-right for individual content blocks.

Click on any text block, then press the text direction button on the toolbar.


<!DOCTYPE html>
        <meta charset="utf-8">

        <!-- css -->
        <link rel="stylesheet" href="/your-folder/redactor.css" />
        <!-- element -->
        <textarea id="entry">...</textarea>

        <!-- js -->
        <script src="/your-folder/redactor.js"></script>
        <script src="/your-folder/plugins/textdirection/textdirection.js"></script>

        <!-- call -->
        Redactor('#entry', {
            plugins: ['textdirection']


By default, the plugin only adds its button to the toolbar. To add it to the context bar, enable the context setting:

Redactor('#entry', {
    plugins: ['textdirection'],
    textdirection: {
        context: true