change back docs to use settings as option directly
This commit is contained in:
@ -53,8 +53,11 @@ In addition to marking text as inserted or deleted, change tracking can also be
|
||||
```ts
|
||||
import { Document } from "docx";
|
||||
|
||||
const doc = new Document({});
|
||||
doc.Settings.addTrackRevisions()
|
||||
const doc = new Document({
|
||||
features: {
|
||||
trackRevisions: true,
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
If you want to express a style changes, you can add a `revision` to a `TextRun` which need to include all previous style attributes.
|
||||
|
Reference in New Issue
Block a user