Skip to content

Commit b11cab0

Browse files
committed
DOC-3132: New revisionhistory_allow_restore option to control restoration of old revisions.
1 parent 5ea58d2 commit b11cab0

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

modules/ROOT/pages/7.7.0-release-notes.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,25 @@ This caused confusion in identifying the problem during setup.
109109

110110
For information on the **Image Optimizer** plugin, see: xref:uploadcare.adoc[Image Optimizer].
111111

112+
=== Revision History
113+
114+
The {productname} {release-version} release includes an accompanying release of the **Revision History** premium plugin.
115+
116+
**Revision History** includes the following addition.
117+
118+
==== New `revisionhistory_allow_restore` option to control restoration of old revisions
119+
// #TINY-11746
120+
121+
Previously, integrators had no way to control whether users could restore old revisions in the **Revision History** plugin.
122+
123+
{prductname} {release-version} introduces a new `revisionhistory_allow_restore` option, which provides integrators with a way to manage this behavior. By default, it is set to `+true+`, setting it to `+false+` prevents users from restoring previous versions.
124+
125+
This improvement enhances access control within the **Revision History** plugin, providing greater flexibility for managing revision restoration.
126+
127+
For more information, see: xref:revisionhistory.adoc[Revision History].
128+
129+
==== New `revisionhistory_allow_restore` option to control if users can restore old versions.
130+
112131
[[improvements]]
113132
== Improvements
114133

modules/ROOT/pages/revisionhistory.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ include::partial$configuration/revisionhistory_fetch.adoc[leveloffset=+1]
109109

110110
include::partial$configuration/revisionhistory_fetch_revision.adoc[leveloffset=+1]
111111

112+
include::partial$configuration/revisionhistory_allow_restore.adoc[leveloffset=+1]
113+
112114
include::partial$configuration/revisionhistory_author.adoc[leveloffset=+1]
113115

114116
include::partial$configuration/revisionhistory_display_author.adoc[leveloffset=+1]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[revisionhistory_allow_restore]]
2+
== `revisionhistory_allow_restore`
3+
4+
The `revisionhistory_allow_restore` option enables or disables the ability to restore a revision from the Revision History view.
5+
6+
*Type:* `+Boolean+`
7+
8+
*Default vale:* `+true+`
9+
10+
=== Example: Using `revisionhistory_allow_restore`
11+
12+
[source,js]
13+
----
14+
tinymce.init({
15+
selector: 'textarea', // change this value according to your HTML
16+
plugins: 'revisionhistory',
17+
toolbar: 'revisionhistory',
18+
revisionhistory_fetch: () => Promise.resolve([]), // Required option for the plugin - replace with actual API request
19+
revisionhistory_allow_restore: false
20+
----

0 commit comments

Comments
 (0)