Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions Document-Processing/Word/Word-Processor/react/track-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ import * as React from 'react';
import {
DocumentEditorContainerComponent,
Toolbar,
Selection,
Editor,
} from '@syncfusion/ej2-react-documenteditor';

// Inject the required modules
DocumentEditorContainerComponent.Inject(Toolbar, Selection, Editor);
DocumentEditorContainerComponent.Inject(Toolbar);

function App() {
let container = null;
Expand All @@ -103,8 +101,6 @@ function App() {
height={'590px'}
serviceUrl="https://document.syncfusion.com/web-services/docx-editor/api/documenteditor/"
enableToolbar={true}
enableSelection={true}
enableEditor={true}
enableTrackChanges={true}
/>
</div>
Expand Down Expand Up @@ -197,7 +193,7 @@ In DocumentEditor, we have built-in review panel in which we have provided suppo

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.

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

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

Expand Down Expand Up @@ -295,4 +291,4 @@ function App() {
}
export default App;
createRoot(document.getElementById('sample')).render(<App />);
```
```