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
|
```ts
|
||||||
import { Document } from "docx";
|
import { Document } from "docx";
|
||||||
|
|
||||||
const doc = new Document({});
|
const doc = new Document({
|
||||||
doc.Settings.addTrackRevisions()
|
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.
|
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