Upload or drag images

This example shows how to set up Redactor for uploading or drag and drop images.

    Demo

    Code

    <!--element -->
    <textarea id="content"></textarea>
    
    <!-- call -->
    <script>
    $R('#content', { imageUpload: '/your-upload-script/' });
    </script>
    
    <!-- server response json -->
    {
        "file": {
            "url": "image-url.jpg",
            "id": "some-id"
        }
    }