Examples

Placeholder

    This example shows how to set up placeholder when Redactor's content is empty.

    Demo

    Code

    <!--set up placeholder as the attribute -->
    <textarea id="content" placeholder="Edit me..."></textarea>
    
    <!-- call -->
    <script>
    $R('#content');
    
    // or set up placeholder as the option
    $R('#content', { placeholder: 'Edit me...' });
    </script>