-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC-3132: New revisionhistory_allow_restore option to control restora…
…tion of old revisions.
- Loading branch information
1 parent
5ea58d2
commit b11cab0
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
modules/ROOT/partials/configuration/revisionhistory_allow_restore.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[[revisionhistory_allow_restore]] | ||
== `revisionhistory_allow_restore` | ||
|
||
The `revisionhistory_allow_restore` option enables or disables the ability to restore a revision from the Revision History view. | ||
|
||
*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 | ||
---- |