Collapse

Creates the ability to collapse content that comes after headings. Click on the heading and then on the control bar button on the right. Select 'Toggle collapse' from the menu.

Code

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

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

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

        <!-- call -->
        <script>
        Redactor('#entry', {
            plugins: ['collapse']
        });
        </script>
    </body>
</html>