Skip to content

Commit 1ae98f1

Browse files
kemister85abhinavgandhamtiny-ben-tran
authored
DOC-3132: New revisionhistory_allow_restore option to control restoration of old revisions. (#3615)
* DOC-3132: New revisionhistory_allow_restore option to control restoration of old revisions. * Update modules/ROOT/pages/7.7.0-release-notes.adoc * Update modules/ROOT/pages/7.7.0-release-notes.adoc * Update modules/ROOT/pages/7.7.0-release-notes.adoc Co-authored-by: CODE:AG <[email protected]> * Update modules/ROOT/partials/configuration/revisionhistory_allow_restore.adoc Co-authored-by: CODE:AG <[email protected]> * Update modules/ROOT/partials/configuration/revisionhistory_allow_restore.adoc Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/pages/7.7.0-release-notes.adoc Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/pages/7.7.0-release-notes.adoc Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/pages/7.7.0-release-notes.adoc --------- Co-authored-by: CODE:AG <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]>
1 parent 5e240ed commit 1ae98f1

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,21 @@ Previously in the **Image Optimizer** premium plugin, a fallback mechanism cause
163163

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

166+
=== Revision History
167+
168+
The {productname} {release-version} release includes an accompanying release of the **Revision History** premium plugin.
169+
170+
**Revision History** includes the following addition.
171+
172+
==== New `revisionhistory_allow_restore` option to control restoration of old revisions
173+
// #TINY-11746
174+
175+
{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.
176+
177+
This improvement enhances access control within the **Revision History** plugin, providing greater flexibility for managing revision restoration.
178+
179+
For more information on the **Revision History** plugin, see: xref:revisionhistory.adoc[Revision History].
180+
166181
=== Accessibility Checker
167182

168183
The {productname} {release-version} release includes an accompanying release of the **Accessibility Checker** premium plugin.

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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[[revisionhistory_allow_restore]]
2+
== `revisionhistory_allow_restore`
3+
4+
The `revisionhistory_allow_restore` option enables or disables the ability to restore a revision.
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+
});
21+
----

0 commit comments

Comments
 (0)