Skip to content

Commit c575c2f

Browse files
committed
Merge branch '974850-CustomDD' of https://github.com/syncfusion-content/document-processing-docs into 974850-CustomDD
2 parents 23a3dfb + 502b120 commit c575c2f

6 files changed

Lines changed: 12 additions & 23 deletions

File tree

Document-Processing/Word/Word-Processor/angular/track-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ In DocumentEditor, we have built-in review panel in which we have provided suppo
107107

108108
## Custom metadata along with author
109109

110-
The Document Editor provides options to customize revisions using [`revisionsettings`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/revisionsettings#customdata) property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the [`showCustomDataWithAuthor`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
110+
The Document Editor provides options to customize revisions using [`revisionSettings`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/revisionsettings#customdata) property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the [`showCustomDataWithAuthor`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
111111

112112
The following example code illustrates how to enable and update custom metadata for track changes revisions.
113113

@@ -155,7 +155,7 @@ The Track Changes pane will display the author name along with the custom metada
155155

156156
Document Editor provides support for protecting the document with `RevisionsOnly` protection. In this protection, all the users are allowed to view the document and do their corrections, but they cannot accept or reject any tracked changes in the document. Later, the author can view their corrections and accept or reject the changes.
157157

158-
Document editor provides an option to protect and unprotect document using [`enforceProtection`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/editor/#enforceprotection) and [`stopProtection`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/editor/#stopprotection) API.
158+
Document editor provides an option to protect and unprotect document using [`enforceProtection`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/editor#enforceprotection) and [`stopProtection`](https://ej2.syncfusion.com/angular/documentation/api/document-editor/editor#stopprotection) API.
159159

160160
The following example code illustrates how to enforce and stop protection in Document editor container.
161161

Document-Processing/Word/Word-Processor/asp-net-core/track-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ In DocumentEditor, we have built-in review panel in which we have provided suppo
131131

132132
## Custom metadata along with author
133133

134-
The Document Editor provides options to customize revisions using `Revisionsettings`. The `CustomData` property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the `showCustomDataWithAuthor` property.
134+
The Document Editor provides options to customize revisions using `revisionSettings`. The `customData` property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the `showCustomDataWithAuthor` property.
135135

136136
The following example code illustrates how to enable and update custom metadata for track changes revisions.
137137

@@ -175,4 +175,4 @@ Tracked changes only protection can be enabled in UI by using [Restrict Editing
175175

176176
![Enable track changes only protection](images/tracked-changes.png)
177177

178-
N> In enforce Protection method, first parameter denotes password and second parameter denotes protection type. Possible values of protection type are `NoProtection |ReadOnly |FormFieldsOnly |CommentsOnly |RevisionsOnly`. In stop protection method, parameter denotes the password.
178+
N> In enforce Protection method, first parameter denotes password and second parameter denotes protection type. Possible values of protection type are `NoProtection |ReadOnly |FormFieldsOnly |CommentsOnly |RevisionsOnly`. In stop protection method, parameter denotes the password.

Document-Processing/Word/Word-Processor/asp-net-mvc/track-changes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ In DocumentEditor, we have built-in review panel in which we have provided suppo
126126

127127
## Custom metadata along with author
128128

129-
The Document Editor provides options to customize revisions using `Revisionsettings`. The `CustomData` property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the `showCustomDataWithAuthor` property.
129+
The Document Editor provides options to customize revisions using `revisionsettings`. The `customData` property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the `showCustomDataWithAuthor` property.
130130

131131
The following example code illustrates how to enable and update custom metadata for track changes revisions.
132132

@@ -165,8 +165,8 @@ The following example code illustrates how to enforce and stop protection in Doc
165165
{% endhighlight %}
166166
{% endtabs %}
167167

168-
Tracked changes only protection can be enabled in UI by using [Restrict Editing pane](./document-management#restrict-editing-pane/)
168+
Tracked changes only protection can be enabled in UI by using [Restrict Editing pane](./document-management#restrict-editing-pane)
169169

170170
![Enable track changes only protection](images/tracked-changes.png)
171171

172-
N> In enforce Protection method, first parameter denotes password and second parameter denotes protection type. Possible values of protection type are `NoProtection |ReadOnly |FormFieldsOnly |CommentsOnly |RevisionsOnly`. In stop protection method, parameter denotes the password.
172+
N> In enforce Protection method, first parameter denotes password and second parameter denotes protection type. Possible values of protection type are `NoProtection |ReadOnly |FormFieldsOnly |CommentsOnly |RevisionsOnly`. In stop protection method, parameter denotes the password.

Document-Processing/Word/Word-Processor/blazor/track-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ In DocumentEditor, we have built-in review panel in which we have provided suppo
8787

8888
## Custom metadata along with author
8989

90-
The Document Editor provides options to customize revisions using [`Revisionsettings`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.DocumentEditorSettingsModel.html#Syncfusion_Blazor_DocumentEditor_DocumentEditorSettingsModel_RevisionSettings). The `CustomData` property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the `showCustomDataWithAuthor` property.
90+
The Document Editor provides options to customize revisions using [`RevisionSettings`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DocumentEditor.DocumentEditorSettingsModel.html#Syncfusion_Blazor_DocumentEditor_DocumentEditorSettingsModel_RevisionSettings). The `CustomData` property allows you to attach additional metadata to tracked revisions in the Word Processor. This metadata can represent roles, tags, or any custom identifier for the revision. To display this metadata along with the author name in the Track Changes pane, you must enable the `ShowCustomDataWithAuthor` property.
9191

9292
The following example code illustrates how to enable and update custom metadata for track changes revisions.
9393

Document-Processing/Word/Word-Processor/javascript-es6/track-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ import { DocumentEditorContainer, Ribbon } from '@syncfusion/ej2-documenteditor'
179179
let container: DocumentEditorContainer = new DocumentEditorContainer({
180180
height: '590px',
181181
serviceUrl= hostUrl,
182-
enableTrackChanges=true,
182+
enableTrackChanges= true,
183183
documentEditorSettings: {
184184
revisionSettings: { customData : "Developer", showCustomDataWithAuthor : true }}
185185
});
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11

2-
<ejs-documenteditorcontainer id="container" serviceUrl="/api/DocumentEditor/" enableToolbar=true enableTrackChanges=true created="onCreated" height="590px"></ejs-documenteditorcontainer>
3-
4-
2+
<ejs-documenteditorcontainer id="container" documentEditorSettings="settings" height="590px" enableTrackChanges=true></ejs-documenteditorcontainer>
53
<script>
6-
var documenteditor;
7-
var container;
8-
function onCreated() {
9-
var documenteditorElement = document.getElementById('container');
10-
container = documenteditorElement.ej2_instances[0];
11-
documenteditor = container.documentEditor;
12-
container.documentEditor.editor.enforceProtection('123', 'RevisionsOnly');
13-
//stop the document protection
14-
container.documentEditor.editor.stopProtection('123');
15-
}
16-
</script>
4+
var settings = { revisionSettings: { customData: 'Developer', showCustomDataWithAuthor: true} };
5+
</script>

0 commit comments

Comments
 (0)