diff --git a/modules/ROOT/pages/7.7.0-release-notes.adoc b/modules/ROOT/pages/7.7.0-release-notes.adoc index 3b41af33ce..46a95cc151 100644 --- a/modules/ROOT/pages/7.7.0-release-notes.adoc +++ b/modules/ROOT/pages/7.7.0-release-notes.adoc @@ -163,6 +163,21 @@ Previously in the **Image Optimizer** premium plugin, a fallback mechanism cause For information on the **Image Optimizer** plugin, see: xref:uploadcare.adoc[Image Optimizer]. +=== Revision History + +The {productname} {release-version} release includes an accompanying release of the **Revision History** premium plugin. + +**Revision History** includes the following addition. + +==== New `revisionhistory_allow_restore` option to control restoration of old revisions +// #TINY-11746 + +{productname} {release-version} introduces a new `revisionhistory_allow_restore` option, which provides a way to control if a user can restore revisions. By default, it is set to `+true+`, setting it to `+false+` prevents users from restoring previous versions. + +This improvement enhances access control within the **Revision History** plugin, providing greater flexibility for managing revision restoration. + +For more information on the **Revision History** plugin, see: xref:revisionhistory.adoc[Revision History]. + === Accessibility Checker The {productname} {release-version} release includes an accompanying release of the **Accessibility Checker** premium plugin. diff --git a/modules/ROOT/pages/revisionhistory.adoc b/modules/ROOT/pages/revisionhistory.adoc index 06fc18b2b1..6e15b81933 100644 --- a/modules/ROOT/pages/revisionhistory.adoc +++ b/modules/ROOT/pages/revisionhistory.adoc @@ -109,6 +109,8 @@ include::partial$configuration/revisionhistory_fetch.adoc[leveloffset=+1] include::partial$configuration/revisionhistory_fetch_revision.adoc[leveloffset=+1] +include::partial$configuration/revisionhistory_allow_restore.adoc[leveloffset=+1] + include::partial$configuration/revisionhistory_author.adoc[leveloffset=+1] include::partial$configuration/revisionhistory_display_author.adoc[leveloffset=+1] diff --git a/modules/ROOT/partials/configuration/revisionhistory_allow_restore.adoc b/modules/ROOT/partials/configuration/revisionhistory_allow_restore.adoc new file mode 100644 index 0000000000..c4d80ab1a6 --- /dev/null +++ b/modules/ROOT/partials/configuration/revisionhistory_allow_restore.adoc @@ -0,0 +1,21 @@ +[[revisionhistory_allow_restore]] +== `revisionhistory_allow_restore` + +The `revisionhistory_allow_restore` option enables or disables the ability to restore a revision. + +*Type:* `+Boolean+` + +*Default vale:* `+true+` + +=== Example: Using `revisionhistory_allow_restore` + +[source,js] +---- +tinymce.init({ + selector: 'textarea', // change this value according to your HTML + plugins: 'revisionhistory', + toolbar: 'revisionhistory', + revisionhistory_fetch: () => Promise.resolve([]), // Required option for the plugin - replace with actual API request + revisionhistory_allow_restore: false + }); +----