Extension for dnadesign/silverstripe-elemental that adds a preview popup when adding blocks
- Ed Chipman (UndefinedOffset)
composer require webbuilders-group/silverstripe-elemental-add-preview
This module will pull the title and icon of the block using the existing values displayed in the "Add new block" menu. It will also use the class description from the block's configuration to provide a description. It also adds support for a preview_image configuration option on the block. This will then appear at the top of the preview toast when the user hovers over the block in the "Add new block" menu. This should be the path to an image that is a multiple of 242px wide, the path to the image can also use a module syntax for example webbuilders-group/silverstripe-elemental-add-preview: path/to/image.jpg.
