This example shows how to set up Redactor for uploading or drag and drop images.
<!--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"
}
}