Textexpander

Enter a short snippet of text or a word and this plugin will replace it to a frequently used predefined text.

Code

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

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

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

        <!-- plugin js -->
        <script src="/your-folder/plugins/textexpander.js"></script>

        <!-- call -->
        <script>
        $R('#content', {
            plugins: ['textexpander']
            textexpander: [
                ['lorem', 'Lorem ipsum...'],
                ['text', 'My text']
            ]
        });
        </script>
    </body>
</html>