Load via data attribute

Redactor can be called automatically by specifying the data attribute data-redactor for the HTML element. In this case, the editor will be launched on the window.load event without having to initialize manually.

    Demo

    Code

    <!-- element -->
    <textarea data-redactor>...</textarea>
    
    // or with options
    <textarea data-redactor data-focus="true" data-buttons-text-labeled="true"></textarea>