johannschopplich / kirby-live-preview
See unsaved changes live, on any screen size
Package info
github.com/kirby-tools/kirby-live-preview
Type:kirby-plugin
pkg:composer/johannschopplich/kirby-live-preview
Requires
- php: >=8.3
- getkirby/composer-installer: ^1
- johannschopplich/kirby-tools-licensing: ^1
Requires (Dev)
- getkirby/cms: ^6.0
- phpunit/phpunit: ^12
- vlucas/phpdotenv: ^5
Suggests
None
Provides
None
Conflicts
- getkirby/cms: <6
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 16:26:28 UTC
README
Kirby Live Preview
Kirby Live Preview is a plugin for Kirby CMS that adds a Panel field to render any page in an iframe – content updates as editors type. Navigate by clicking links inside the preview – the matching Panel view opens instead of the linked page. Pin the field sticky to keep it visible while editing blocks and other fields side-by-side.
Features
- 🖥️ Renders as You Type: The field rerenders once you pause typing, before anything is saved.
- 📱 Three Screen Widths: Toggle the preview to 390, 768, or 1440 pixels wide; where the field is narrower, the page is scaled down.
- 🔍 Preview Mode: The rendered page carries a
data-preview-modeattribute on itshtmlelement and apreviewMode()method in PHP, so it can hide the cookie banner or skip animations. - 🔗 Links Open Panel Pages: A click on a link inside the preview opens the linked page in the Panel; links to other sites open in a new tab.
Licensing
Kirby Live Preview is a commercial plugin that requires a license. You can install and test the plugin locally without a license. However, production environments require a valid license. You can purchase a license from the Kirby Live Preview Website.
Requirements
- Kirby 6
Installation
Composer (Recommended)
composer require johannschopplich/kirby-live-preview
Manual Installation
Download a release and extract it to /site/plugins/kirby-live-preview.
Upgrading from Live Preview 2
Live Preview 3 requires Kirby 6, which has no plugin sections, so the Live Preview section is a field now. Kirby shows Invalid section type ("preview") until you move it from sections: to fields::
# Live Preview 2 sections: livePreview: type: preview # Live Preview 3 fields: livePreview: type: preview
The preview renders once you stop typing for updateInterval milliseconds, 500 by default, instead of every interval while you type. updateStrategy is gone: the pause covers what blur was for, and Kirby ignores the option. interactable: 0 blocks the pointer like false.
Documentation
For installation, configuration, and usage, see the Kirby Live Preview documentation.
Support and Questions
We are committed to support you if you have any questions or issues with Kirby Live Preview. There are several ways to get support:
- GitHub Discussions: Join the community and engage in discussions on our GitHub Discussions page.
- Email Support: You can ask questions and seek assistance by emailing us at hello@kirby.tools. Please use the GitHub discussions if you have a general question or comment about Kirby Live Preview.
- GitHub Issues: For reporting bugs or requesting new features, please use the GitHub Issues page.
We encourage you to use the resources above to connect with us and other users of Kirby Live Preview.
For the sake of reproducible bug reports, please include the following information in your bug reports:
- Kirby & Kirby Live Preview version
- Browser environment (name, version, operating system)
- Field configuration (without any sensitive information)
- Steps to reproduce the bug (if no reproduction is provided)
- Screenshots or screen recordings if applicable
Feedback
We value your feedback and ideas for improving Kirby Live Preview. If you have any suggestions, please feel free to reach out to us via email or preferably by creating a new discussion on our GitHub Discussions page.
License
Kirby Tools License © 2024-PRESENT Johann Schopplich