A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
MIT License
Bot releases are visible (Hide)
useAPIErrorHandler
in fetchClient
responses.Published by mattmilburn 12 months ago
parseUrl
util.Published by mattmilburn 12 months ago
4.13.1
.1.9.0
.engines
to >=16.0.0 <=20.x.x
.Published by mattmilburn about 1 year ago
parseUrl
util.Published by mattmilburn about 1 year ago
^17.0.0 || ^18.0.0
4.11.0
NOTE: If you continue to have issues with React 18 support, try using the following in your
package.json
:"resolutions": { "react": "^18.0.0", },
Published by mattmilburn about 1 year ago
Please see the Migrations Guide to keep your preview button plugin up-to-date.
draft.alwaysVisible
option to ensure the preview button for draft mode is always visible.openTarget
option can now be customized per model and published state.eslint
, prettier
, jest
, and pre-commit actions.modifiedData
was used instead of initialData
, which was using values not saved in the db.async bootstrap
.Initializer
component.request
usage with useFetchClient
hook.husky
and lint-staged
to enable pre-commit actions.lint
, format
, and test
scripts in package.json.Published by mattmilburn over 1 year ago
async
custom hooks.Published by mattmilburn almost 2 years ago
v4.5.6
.Published by mattmilburn almost 2 years ago
plugin/preview-button/before-build-url
hook too allow modifying the config options before building the preview URL.Published by mattmilburn almost 2 years ago
v4.5.3
.v1.4.0
.>=14.19.1 <=18.x.x
.Published by mattmilburn almost 2 years ago
slug
value.openTarget
config option to allow opening multiple tabs instead of re-using the same tab.openTarget
option to the README.Published by mattmilburn about 2 years ago
Please see the Migrations Guide to keep your preview button plugin up-to-date.
Published by mattmilburn about 2 years ago
draftAndPublish
disabled - https://github.com/mattmilburn/strapi-plugin-preview-button/issues/40
Published by mattmilburn about 2 years ago
targetField
values for draft
and published
props in config.Published by mattmilburn about 2 years ago
Consider this the first official stable release for this plugin.
usePreviewData
hook so it executes during each render