All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added automatic tab selection in live preview when clicking preview blocks that belong to different tabs.
Note
The attribute name for tracking preview blocks has been changed from preview-block-id
to data-preview-block-id
- Changed the attribute name for tracking preview blocks from
preview-block-id
todata-preview-block-id
. Update your template code accordingly. craft.previewMate.previewBlock
twig variable now returns the HTML attribute withdata-
prefixed to match the newdata-preview-block-id
attribute.
craft.previewMate.previewBlock
twig variable now usesCraft::$app->request->isPreview
internally to check if the current request is a preview request.
- Remove CP Settings
- Support for Craft CMS 5.
- Added documentation for Craft CMS 5 usage.
- Added
preview-block-id
HTML attribute. This is now the default way to connect live preview blocks to editor blocks (also a much cleaner approach).
- Twig variable
craft.previewMate.previewBlock
now requires an\craft\elements\Entry
argument which will add thepreview-block-id
attribute to the HTML element.
- Removed
config/preview-mate.php
. No longer needed after addingpreview-block-id
.
- Added support for Craft CMS 4.x
- Exception when iframe content is not fully loaded on large pages.
- Exclude nested editor matrix blocks from query. Edge case occured when using Matrix -> Super Table -> Matrix.
- Craft tests
- Initial release
- Click Preview Block and scroll to the corresponding Editor Block