Skip to content

V14: Adds preview.js#16305

Merged
iOvergaard merged 10 commits intov14/devfrom
v14/bugfix/website-preview-js
May 21, 2024
Merged

V14: Adds preview.js#16305
iOvergaard merged 10 commits intov14/devfrom
v14/bugfix/website-preview-js

Conversation

@leekelleher
Copy link
Copy Markdown
Member

@leekelleher leekelleher commented May 16, 2024

Description

In preview mode, e.g. the UMB_PREVIEW cookie has been set, when browsing the website, a preview badge/menu would appear at the bottom-center of the screen, with options to either re-enter the backoffice preview (with device resizing) or to exit preview mode.

With the removal of all AngularJS code, the legacy websitepreview.js script was removed.

This PR adds in a revised preview.js (under StaticAssets wwwroot/umbraco/website/) to replace the legacy functionality, (built as a standalone native JS web component, for encapsulation and reducing encoded string markup in C#).

This PR also updates the content's Id with the Guid Key.

Related PRs:

to replace the legacy `umbraco.websitepreview.min.js` script.

Updates the content's `Id` with `Key`.
Copy link
Copy Markdown
Contributor

@iOvergaard iOvergaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants