Skip to content

Commit 23a3dfb

Browse files
committed
974850: CI failures
1 parent 76b1124 commit 23a3dfb

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ container.documentEditor.selection.navigatePreviousRevision();
125125
```
126126
## Custom metadata along with author
127127

128-
The Document Editor provides options to customize revisions using [`revisionsettings`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/javascript/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/javascript/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
128+
The Document Editor provides options to customize revisions using [`revisionSettings`](https://ej2.syncfusion.com/javascript/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/javascript/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/javascript/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
129129

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

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

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

171171
## Custom metadata along with author
172172

173-
The Document Editor provides options to customize revisions using [`revisionsettings`](https://ej2.syncfusion.com/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/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/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
173+
The Document Editor provides options to customize revisions using [`revisionSettings`](https://ej2.syncfusion.com/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/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/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
174174

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

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,49 @@ In DocumentEditor, we have built-in review panel in which we have provided suppo
189189

190190
![Track changes](images/track-changes.png)
191191

192+
## Custom metadata along with author
193+
194+
The Document Editor provides options to customize revisions using [`revisionSettings`](https://ej2.syncfusion.com/react/documentation/api/document-editor/documenteditorsettingsmodel#revisionsettings). The [`customData`](https://ej2.syncfusion.com/react/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/react/documentation/api/document-editor/revisionsettings#showcustomdatawithauthor) property.
195+
196+
The following example code illustrates how to enable and update custom metadata for track changes revisions.
197+
198+
```ts
199+
import * as ReactDOM from 'react-dom';
200+
import * as React from 'react';
201+
import {
202+
DocumentEditorContainerComponent,
203+
Ribbon,
204+
} from '@syncfusion/ej2-react-documenteditor';
205+
206+
DocumentEditorContainerComponent.Inject(Ribbon);
207+
function App() {
208+
let container;
209+
let settings = { revisionSettings: { customData: 'Developer’, showCustomDataWithAuthor: true} };
210+
return (
211+
<DocumentEditorContainerComponent
212+
id="container"
213+
ref={(scope) => {
214+
container = scope;
215+
}}
216+
height={'590px'}
217+
serviceUrl="HostURL"
218+
enableTrackChanges={true}
219+
documentEditorSettings={settings}
220+
/>
221+
);
222+
}
223+
export default App;
224+
ReactDOM.render(<App />, document.getElementById('sample'));
225+
226+
```
227+
The Track Changes pane will display the author name along with the custom metadata, as shown in the screenshot below.
228+
229+
![Custom metadata along with author](images/track-changes-customData.png)
230+
231+
>Note:
232+
* When you export the document as SFDT, the customData value is stored in the revision collection. When you reopen the SFDT, the custom data is automatically restored and displayed in the Track Changes pane.
233+
* Other than SFDT export (e.g. DOCX and other), the customData is not preserved, as it is specific to the Document Editor component.
234+
192235
## Protect the document in track changes only mode
193236
194237
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.

0 commit comments

Comments
 (0)