Carousel/Gallery Block for the Editor.js.
- Uploading file from the device
- Preload image
Note This Tool requires server-side implementation for file uploading. See backend response format for more details.
- Upload folder
distfrom repository - Add
dist/bundle.jsfile to your page.
Add a new Tool to the tools property of the Editor.js initial config.
import Carousel from 'Carousel'; // or if you inject ImageTool via standalone script const Carousel = window.Carousel; var editor = EditorJS({ ... tools: { ... carousel: { class: Carousel, config: { endpoints: { byFile: "URL_FETCH", } } }, } ... });