-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ElementEditor-powered Live Preview #15112
ElementEditor-powered Live Preview #15112
Conversation
Yes!!! 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 I pushed a few little changes directly to the branch, so if you mess with anymore just make sure to pull.
- Updated to logical properties
- Ensure the tab menu button shows/hides on resize
- Fixed some random JS errors I ran into while testing. They may not be totally related to these changes, but figured they were worth fixing either way.
- No longer dependent on a parent ElementEditor instance - No longer reloaded when reopened, if nothing changed in the main form - Faster initial load - Save button
…eview # Conflicts: # src/web/assets/cp/dist/cp.js # src/web/assets/cp/dist/cp.js.map # src/web/assets/cp/dist/css/cp.css # src/web/assets/cp/dist/css/cp.css.map # src/web/assets/cp/src/js/ElementEditor.js
[ci skip]
I've spent some time with the revamped live preview now, and just wanted to say that I love it - it's how I always wanted LP to work and it's going to make a huge difference in AX for authors, especially when editing more complex field layouts. Nice work 👏 |
Description
Refactors Live Preview to create its own dedicated ElementEditor instance, embedded within the editor pane (similar to element editor slideouts).
By doing that, Live Preview gains feature parity with element editor slideouts:
The parent editor is kept up-to-date with the LP editor’s state, and its content fields are refreshed to get the latest values when LP is closed (if anything changed).
Related issues