Properties

This plugin allows you to assign any id or class to any block tag (selected or containing cursor).

    Demo

    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/properties.js"></script>
    
            <!-- call -->
            <script>
            $R('#content', { plugins: ['properties'] });
            </script>
        </body>
    </html>