Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions modules/ROOT/pages/7.7.0-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions modules/ROOT/pages/revisionhistory.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -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
});
----
Loading