Select uploaded images

This example shows how to load a thumbnail grid from image.select and insert images from the gallery.

Code

<div id="entry-select-images"></div>
const app = Redactor('#entry-select-images', {
    image: {
        select: '/tests/redactor5/images.json'
    }
});
// Select json
{
  "photo-1": { "thumb": "/uploads/a-thumb.jpg", "url": "/uploads/a.jpg" },
  "photo-2": { "thumb": "/uploads/b-thumb.jpg", "url": "/uploads/b.jpg" }
}