change back docs to use settings as option directly

This commit is contained in:
Thomas Jansen
2021-11-26 19:33:40 +01:00
parent e598faad28
commit 02222c8681

View File

@ -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.