A gallery module for the Kirby CMS Editor
This module is mostly built on top of existing Kirby UI Kit components.
.zip
site/plugins
folder with the name kirby-editor-gallery-block
I've attempted to follow the same UX patterns as other Kirby Editor blocks
Backspace
on an image will remove the image from the gallery.Enter
on an image will add a new gallery row below.Enter
on an empty row, will convert it to a paragraph.The project comes with a default snippet to render the gallery blocks in your templates as displayed in the editor. This can be edited to suit your needs.
# From project root folder, install dependencies
$ yarn
# For development and live debug
$ yarn dev
# For production build
$ yarn build