Skip to content

Commit 1744557

Browse files
Merge pull request #1608 from syncfusion-content/988160-hottrack
988160: Code changes for Track changes Document editor
2 parents 2b388ae + a165893 commit 1744557

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,10 @@ import * as React from 'react';
7878
import {
7979
DocumentEditorContainerComponent,
8080
Toolbar,
81-
Selection,
82-
Editor,
8381
} from '@syncfusion/ej2-react-documenteditor';
8482

8583
// Inject the required modules
86-
DocumentEditorContainerComponent.Inject(Toolbar, Selection, Editor);
84+
DocumentEditorContainerComponent.Inject(Toolbar);
8785

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

198194
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.
199195

200-
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.
196+
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.
201197

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

@@ -295,4 +291,4 @@ function App() {
295291
}
296292
export default App;
297293
createRoot(document.getElementById('sample')).render(<App />);
298-
```
294+
```

0 commit comments

Comments
 (0)