Print

Integrates a convenient print function directly into the editor's toolbar, facilitating immediate document printing.

Click the printer icon on the toolbar to open the print window.

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/print/print.js"></script>

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

Usage

You can insert a link to a printable styles file, as shown below:


Redactor('#entry', {
    plugins: ['print'],
    print: {
        css: '/your-path-to/print.css'
    }
});